linux_dsm_epyc7002/drivers/net/ethernet/intel
Magnus Karlsson 0843aa8f12 ixgbe: need_wakeup flag might not be set for Tx
The need_wakeup flag for Tx might not be set for AF_XDP sockets that
are only used to send packets. This happens if there is at least one
outstanding packet that has not been completed by the hardware and we
get that corresponding completion (which will not generate an
interrupt since interrupts are disabled in the napi poll loop) between
the time we stopped processing the Tx completions and interrupts are
enabled again. In this case, the need_wakeup flag will have been
cleared at the end of the Tx completion processing as we believe we
will get an interrupt from the outstanding completion at a later point
in time. But if this completion interrupt occurs before interrupts
are enable, we lose it and should at that point really have set the
need_wakeup flag since there are no more outstanding completions that
can generate an interrupt to continue the processing. When this
happens, user space will see a Tx queue need_wakeup of 0 and skip
issuing a syscall, which means will never get into the Tx processing
again and we have a deadlock.

This patch introduces a quick fix for this issue by just setting the
need_wakeup flag for Tx to 1 all the time. I am working on a proper
fix for this that will toggle the flag appropriately, but it is more
challenging than I anticipated and I am afraid that this patch will
not be completed before the merge window closes, therefore this easier
fix for now. This fix has a negative performance impact in the range
of 0% to 4%. Towards the higher end of the scale if you have driver
and application on the same core and issue a lot of packets, and
towards no negative impact if you use two cores, lower transmission
speeds and/or a workload that also receives packets.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2019-11-08 16:28:38 -08:00
..
e1000 e1000: fix memory leaks 2019-11-01 13:20:33 -07:00
e1000e pci-v5.4-changes 2019-09-23 19:16:01 -07:00
fm10k fm10k: use a local variable for the frag pointer 2019-09-09 10:08:38 -07:00
i40e i40e: need_wakeup flag might not be set for Tx 2019-11-08 16:11:48 -08:00
iavf iavf: initialize ITRN registers with correct values 2019-11-08 16:10:51 -08:00
ice ice: fix potential infinite loop because loop counter being too small 2019-11-08 16:10:51 -08:00
igb igb/igc: use ktime accessors for skb->tstamp 2019-11-08 16:10:51 -08:00
igbvf
igc igb/igc: use ktime accessors for skb->tstamp 2019-11-08 16:10:51 -08:00
ixgb
ixgbe ixgbe: need_wakeup flag might not be set for Tx 2019-11-08 16:28:38 -08:00
ixgbevf Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-09-15 14:17:27 +02:00
e100.c
Kconfig
Makefile