]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: don't do any AF_XDP zero-copy transmit if netif is not OK
authorJan Sokolowski <jan.sokolowski@intel.com>
Wed, 20 Feb 2019 15:20:14 +0000 (15:20 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 21 Feb 2019 19:11:25 +0000 (11:11 -0800)
commitafcd2e646004f844f6ec97df337150acee63cdc7
tree0446f6715108de6dee1c55b14bef083134ca3049
parente5a44c6159bfb60e47ec2170474047cbc3c77a60
ixgbe: don't do any AF_XDP zero-copy transmit if netif is not OK

An issue has been found while testing zero-copy XDP that
causes a reset to be triggered. As it takes some time to
turn the carrier on after setting zc, and we already
start trying to transmit some packets, watchdog considers
this as an erroneous state and triggers a reset.

Don't do any work if netif carrier is not OK.

Fixes: 4963a253a7e9f (ixgbe: add AF_XDP zero-copy Tx support)
Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c