net: dnet: fix dnet_poll()
authorEric Dumazet <edumazet@google.com>
Sun, 11 Jan 2015 19:02:32 +0000 (11:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jan 2015 02:44:55 +0000 (21:44 -0500)
commit12d80ac4e77265a89b87c3b80e2c9a7b29f7fdfb
tree0ce2affa569497afe305f1ddf3eb90c255858aee
parent0c8185944a125621a1766615585238a3563ccac3
net: dnet: fix dnet_poll()

A NAPI poll() handler is supposed to return exactly the budget when/if
napi_complete() has not been called.

It is also supposed to return number of frames that were received, so
that netdev_budget can have a meaning.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dnet.c