[Intel-wired-lan] [PATCH v4 6/6] igb: avoid transmit queue timeout in xdp path
Penigalapati, Sandeep
sandeep.penigalapati at intel.com
Tue Nov 24 14:49:09 UTC 2020
From: sven.auhagen at voleatech.de <sven.auhagen at voleatech.de>
Sent: Wednesday, November 11, 2020 10:35 PM
To: Nguyen, Anthony L <anthony.l.nguyen at intel.com>; Fijalkowski, Maciej <maciej.fijalkowski at intel.com>; kuba at kernel.org
Cc: davem at davemloft.net; intel-wired-lan at lists.osuosl.org; netdev at vger.kernel.org; nhorman at redhat.com; sassmann at redhat.com; Penigalapati, Sandeep <sandeep.penigalapati at intel.com>; brouer at redhat.com; pmenzel at molgen.mpg.de
Subject: [PATCH v4 6/6] igb: avoid transmit queue timeout in xdp path
From: Sven Auhagen <sven.auhagen at voleatech.de>
Since we share the transmit queue with the network stack, it is possible that we run into a transmit queue timeout.
This will reset the queue.
This happens under high load when XDP is using the transmit queue pretty much exclusively.
netdev_start_xmit() sets the trans_start variable of the transmit queue to jiffies which is later utilized by dev_watchdog(), so to avoid timeout, let stack know that XDP xmit happened by bumping the trans_start within XDP Tx routines to jiffies.
Acked-by: Maciej Fijalkowski <maciej.fijalkowski at intel.com>
Signed-off-by: Sven Auhagen <sven.auhagen at voleatech.de>
---
drivers/net/ethernet/intel/igb/igb_main.c | 5 +++++
1 file changed, 5 insertions(+)
Tested-by: Sandeep Penigalapati <sandeep.penigalapati at intel.com>
More information about the Intel-wired-lan
mailing list