From: Daniel Borkmann Date: Mon, 7 Apr 2014 15:18:30 +0000 (+0200) Subject: pktgen: fix xmit test for BQL enabled devices X-Git-Tag: v3.15-rc1~47^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f25cd47dcd2b9912c6e52aa833ba1614f7b5086;p=pandora-kernel.git pktgen: fix xmit test for BQL enabled devices Similarly as in commit 8e2f1a63f221 ("packet: fix packet_direct_xmit for BQL enabled drivers"), we test for __QUEUE_STATE_STACK_XOFF bit in pktgen's xmit, which would not fully fill the device's TX ring for BQL drivers that use netdev_tx_sent_queue(). Fix is to use, similarly as we do in packet sockets, netif_xmit_frozen_or_drv_stopped() test. Signed-off-by: Daniel Borkmann Cc: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed