Commit 5b9c63bc authored by Jeff Moyer's avatar Jeff Moyer Committed by Linus Torvalds

[PATCH] netpoll: increase NAPI budget

I've upped the poll budget to 16 and added a comment explaining why.  I
definitely ran into this problem when testing netdump.
Signed-off-by: default avatarJeff Moyer <jmoyer@redhat.com>
Signed-off-by: default avatarMatt Mackall <mpm@selenic.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e3c265bc
......@@ -63,7 +63,13 @@ static int checksum_udp(struct sk_buff *skb, struct udphdr *uh,
void netpoll_poll(struct netpoll *np)
{
int budget = 1;
/*
* In cases where there is bi-directional communications, reading
* only one message at a time can lead to packets being dropped by
* the network adapter, forcing superfluous retries and possibly
* timeouts. Thus, we set our budget to a more reasonable value.
*/
int budget = 16;
if(!np->dev || !netif_running(np->dev) || !np->dev->poll_controller)
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment