Loading net/core/netpoll.c +48 −51 Original line number Diff line number Diff line Loading @@ -144,7 +144,6 @@ static void service_arp_queue(struct netpoll_info *npi) arp_reply(skb); skb = skb_dequeue(&npi->arp_tx); } return; } void netpoll_poll(struct netpoll *np) Loading Loading @@ -243,10 +242,9 @@ static void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb) } /* don't get messages out of order, and no recursion */ if ( skb_queue_len(&npinfo->txq) == 0 && npinfo->poll_owner != smp_processor_id() && netif_tx_trylock(dev)) { if (skb_queue_len(&npinfo->txq) == 0 && npinfo->poll_owner != smp_processor_id() && netif_tx_trylock(dev)) { /* try until next clock tick */ for (tries = jiffies_to_usecs(1)/USEC_PER_POLL; tries > 0; --tries) { if (!netif_queue_stopped(dev)) Loading Loading @@ -423,7 +421,6 @@ int __netpoll_rx(struct sk_buff *skb) struct netpoll_info *npi = skb->dev->npinfo; struct netpoll *np = npi->rx_np; if (!np) goto out; if (skb->dev->type != ARPHRD_ETHER) Loading Loading @@ -551,8 +548,7 @@ int netpoll_parse_options(struct netpoll *np, char *opt) printk(KERN_INFO "%s: remote IP %d.%d.%d.%d\n", np->name, HIPQUAD(np->remote_ip)); if( *cur != 0 ) { if (*cur != 0) { /* MAC address */ if ((delim = strchr(cur, ':')) == NULL) goto parse_failed; Loading Loading @@ -735,7 +731,8 @@ int netpoll_setup(struct netpoll *np) return err; } static int __init netpoll_init(void) { static int __init netpoll_init(void) { skb_queue_head_init(&skb_pool); return 0; } Loading Loading
net/core/netpoll.c +48 −51 Original line number Diff line number Diff line Loading @@ -144,7 +144,6 @@ static void service_arp_queue(struct netpoll_info *npi) arp_reply(skb); skb = skb_dequeue(&npi->arp_tx); } return; } void netpoll_poll(struct netpoll *np) Loading Loading @@ -243,10 +242,9 @@ static void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb) } /* don't get messages out of order, and no recursion */ if ( skb_queue_len(&npinfo->txq) == 0 && npinfo->poll_owner != smp_processor_id() && netif_tx_trylock(dev)) { if (skb_queue_len(&npinfo->txq) == 0 && npinfo->poll_owner != smp_processor_id() && netif_tx_trylock(dev)) { /* try until next clock tick */ for (tries = jiffies_to_usecs(1)/USEC_PER_POLL; tries > 0; --tries) { if (!netif_queue_stopped(dev)) Loading Loading @@ -423,7 +421,6 @@ int __netpoll_rx(struct sk_buff *skb) struct netpoll_info *npi = skb->dev->npinfo; struct netpoll *np = npi->rx_np; if (!np) goto out; if (skb->dev->type != ARPHRD_ETHER) Loading Loading @@ -551,8 +548,7 @@ int netpoll_parse_options(struct netpoll *np, char *opt) printk(KERN_INFO "%s: remote IP %d.%d.%d.%d\n", np->name, HIPQUAD(np->remote_ip)); if( *cur != 0 ) { if (*cur != 0) { /* MAC address */ if ((delim = strchr(cur, ':')) == NULL) goto parse_failed; Loading Loading @@ -735,7 +731,8 @@ int netpoll_setup(struct netpoll *np) return err; } static int __init netpoll_init(void) { static int __init netpoll_init(void) { skb_queue_head_init(&skb_pool); return 0; } Loading