net: add netif_tx_queue_frozen_or_stopped
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 23 Nov 2010 10:42:02 +0000 (10:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Nov 2010 18:47:18 +0000 (10:47 -0800)
commit5a0d2268d259886f0c87131639d19eb4a67b4532
tree952e6225fcee027f3a4ae8e1c2b2c889eff3a8b2
parentd3c15cab213becc49a6f2ad7f48a59513a5f17dd
net: add netif_tx_queue_frozen_or_stopped

When testing struct netdev_queue state against FROZEN bit, we also test
XOFF bit. We can test both bits at once and save some cycles.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/netpoll.c
net/core/pktgen.c
net/sched/sch_generic.c
net/sched/sch_teql.c