]> git.karo-electronics.de Git - linux-beck.git/commit
ixgbe: flush when in xmit_more mode and under descriptor pressure
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 26 Aug 2014 17:34:18 +0000 (19:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Aug 2014 06:17:41 +0000 (23:17 -0700)
commit2367a17390138f68b3aa28f2f220b8d7ff8d91f4
treecc4b05875696b1bd863cde78f90cc74e37d8e4d6
parent900405d014c584c92b77e7f5d52d46cd2556602b
ixgbe: flush when in xmit_more mode and under descriptor pressure

When xmit_more mode is being used and the ring is about to
become full or the stack has stopped the ring, enforce a tail
pointer write to the hw. Otherwise, we could risk a TX hang.

Code suggested by Alexander Duyck.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c