summaryrefslogtreecommitdiffstats
path: root/net/core/netpoll.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2014-03-14 20:47:49 -0700
committerDavid S. Miller <davem@davemloft.net>2014-03-17 15:47:22 -0400
commitff6076314339e079806d9d2f3de9c9b768e94db1 (patch)
tree1bb96205d18e5b400d342b8acf67386814835a00 /net/core/netpoll.c
parente97dc3fcf98a32a5eda1e942a36044b95bc58099 (diff)
downloadop-kernel-dev-ff6076314339e079806d9d2f3de9c9b768e94db1.zip
op-kernel-dev-ff6076314339e079806d9d2f3de9c9b768e94db1.tar.gz
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>
Diffstat (limited to 'net/core/netpoll.c')
-rw-r--r--net/core/netpoll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index 2ad330e..ef83a25 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -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)
OpenPOWER on IntegriCloud