diff options
author | Shannon Nelson <snelson@pensando.io> | 2021-04-08 02:19:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-08 23:18:49 +0300 |
commit | e2ce148e948e7cf6267351ea407ac45a6b561a54 (patch) | |
tree | 4f3a0ed7cc537cda7cd9fe34b6234cb87cce556c /drivers/net | |
parent | e1edcc966ae8579b76db720a94084866bd7dcd6c (diff) | |
download | linux-e2ce148e948e7cf6267351ea407ac45a6b561a54.tar.xz |
ionic: check for valid tx_mode on SKBTX_HW_TSTAMP xmit
Make sure the device is in a Tx offload mode before calling the
hwstamp offload xmit.
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/pensando/ionic/ionic_txrx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_txrx.c b/drivers/net/ethernet/pensando/ionic/ionic_txrx.c index 3478b0f2495f..765050a5f7a8 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_txrx.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_txrx.c @@ -1233,7 +1233,7 @@ netdev_tx_t ionic_start_xmit(struct sk_buff *skb, struct net_device *netdev) } if (unlikely(skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP)) - if (lif->hwstamp_txq) + if (lif->hwstamp_txq && lif->phc->ts_config_tx_mode) return ionic_start_hwstamp_xmit(skb, netdev); if (unlikely(queue_index >= lif->nxqs)) |