aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorAmerigo Wang <amwang@redhat.com>2011-02-17 18:43:33 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-27 19:11:51 -0500
commit080e4130b1fb6a02e75149a1cccc8192e734713d (patch)
tree09627d9d6e7811fc4ae119df03b892327efbd0dc /net/core
parent8a8efa22f51b3c3f879d272914e3dbbc2041bf91 (diff)
netpoll: remove IFF_IN_NETPOLL flag
V4: rebase to net-next-2.6 This patch removes the flag IFF_IN_NETPOLL, we don't need it any more since we have netpoll_tx_running() now. Signed-off-by: WANG Cong <amwang@redhat.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Cc: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/netpoll.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index 02dc2cbcbe86..f68e6949294e 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -313,9 +313,7 @@ void netpoll_send_skb_on_dev(struct netpoll *np, struct sk_buff *skb,
313 tries > 0; --tries) { 313 tries > 0; --tries) {
314 if (__netif_tx_trylock(txq)) { 314 if (__netif_tx_trylock(txq)) {
315 if (!netif_tx_queue_stopped(txq)) { 315 if (!netif_tx_queue_stopped(txq)) {
316 dev->priv_flags |= IFF_IN_NETPOLL;
317 status = ops->ndo_start_xmit(skb, dev); 316 status = ops->ndo_start_xmit(skb, dev);
318 dev->priv_flags &= ~IFF_IN_NETPOLL;
319 if (status == NETDEV_TX_OK) 317 if (status == NETDEV_TX_OK)
320 txq_trans_update(txq); 318 txq_trans_update(txq);
321 } 319 }