projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
272b98c
)
staging: octeon-ethernet: make dropped packets to consume NAPI budget
author
Aaro Koskinen
<
[email protected]
>
Thu, 5 Sep 2013 18:43:59 +0000
(21:43 +0300)
committer
Ralf Baechle
<
[email protected]
>
Tue, 17 Sep 2013 08:09:49 +0000
(10:09 +0200)
We should count also dropped packets, otherwise the NAPI handler may
end up running too long.
Signed-off-by: Aaro Koskinen <
[email protected]
>
Cc: Greg Kroah-Hartman <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc: David Daney <
[email protected]
>
Cc: Jason A. Donenfeld <
[email protected]
>
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/5809/
Signed-off-by: Ralf Baechle <
[email protected]
>
drivers/staging/octeon/ethernet-rx.c
patch
|
blob
|
history
diff --git
a/drivers/staging/octeon/ethernet-rx.c
b/drivers/staging/octeon/ethernet-rx.c
index 34afc16bc4935e35f5e47c12d27925f6fe7c62f3..10e54165d89c1ab4c269b2499ce22d22792b3218 100644
(file)
--- a/
drivers/staging/octeon/ethernet-rx.c
+++ b/
drivers/staging/octeon/ethernet-rx.c
@@
-303,6
+303,7
@@
static int cvm_oct_napi_poll(struct napi_struct *napi, int budget)
if (backlog > budget * cores_in_use && napi != NULL)
cvm_oct_enable_one_cpu();
}
+ rx_count++;
skb_in_hw = USE_SKBUFFS_IN_HW && work->word2.s.bufs == 1;
if (likely(skb_in_hw)) {
@@
-429,7
+430,6
@@
static int cvm_oct_napi_poll(struct napi_struct *napi, int budget)
#endif
}
netif_receive_skb(skb);
- rx_count++;
} else {
/* Drop any packet received for a device that isn't up */
/*