From: sven.auha...@voleatech.de <sven.auha...@voleatech.de> 
Sent: Wednesday, November 11, 2020 10:35 PM
To: Nguyen, Anthony L <anthony.l.ngu...@intel.com>; Fijalkowski, Maciej 
<maciej.fijalkow...@intel.com>; k...@kernel.org
Cc: da...@davemloft.net; intel-wired-...@lists.osuosl.org; 
netdev@vger.kernel.org; nhor...@redhat.com; sassm...@redhat.com; Penigalapati, 
Sandeep <sandeep.penigalap...@intel.com>; bro...@redhat.com; 
pmen...@molgen.mpg.de
Subject: [PATCH v4 6/6] igb: avoid transmit queue timeout in xdp path

From: Sven Auhagen <sven.auha...@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.fijalkow...@intel.com>
Signed-off-by: Sven Auhagen <sven.auha...@voleatech.de>
---
 drivers/net/ethernet/intel/igb/igb_main.c | 5 +++++
 1 file changed, 5 insertions(+)

Tested-by: Sandeep Penigalapati <sandeep.penigalap...@intel.com>

Reply via email to