netpoll: Add netpoll_rx_processing

Add a helper netpoll_rx_processing that reports when netpoll has
receive side processing to perform.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Eric W. Biederman 2014-03-14 20:47:49 -07:00 committed by David S. Miller
parent e97dc3fcf9
commit ff60763143
2 changed files with 16 additions and 6 deletions

View file

@ -538,7 +538,7 @@ static void netpoll_neigh_reply(struct sk_buff *skb, struct netpoll_info *npinfo
int hlen, tlen;
int hits = 0, proto;
if (list_empty(&npinfo->rx_np))
if (!netpoll_rx_processing(npinfo))
return;
/* Before checking the packet, we do some early
@ -770,7 +770,7 @@ int __netpoll_rx(struct sk_buff *skb, struct netpoll_info *npinfo)
struct netpoll *np, *tmp;
uint16_t source;
if (list_empty(&npinfo->rx_np))
if (!netpoll_rx_processing(npinfo))
goto out;
if (skb->dev->type != ARPHRD_ETHER)