[PATCH 045/150] bridging: fix rx_handlers return code

Luis Henriques luis.henriques at canonical.com
Tue Mar 26 15:19:04 UTC 2013 -stable review patch.  If anyone has any objections, please let me know.


From: Cristian Bercaru <B43982 at freescale.com>

commit 3bc1b1add7a8484cc4a261c3e128dbe1528ce01f upstream.

The frames for which rx_handlers return RX_HANDLER_CONSUMED are no longer
counted as dropped. They are counted as successfully received by

This allows network interface drivers to correctly update their RX-OK and
RX-DRP counters based on the result of 'netif_receive_skb'.

Signed-off-by: Cristian Bercaru <B43982 at freescale.com>
Signed-off-by: Eric Dumazet <edumazet at google.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
[ luis: adjust context ]
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
 net/core/dev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/core/dev.c b/net/core/dev.c
index 3ad746b..097dd07 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3227,6 +3227,7 @@ ncls:
 		switch (rx_handler(&skb)) {
+			ret = NET_RX_SUCCESS;
 			goto out;
 			goto another_round;

More information about the kernel-team mailing list