From: Cristian Bercaru Date: Fri, 8 Mar 2013 07:03:38 +0000 (+0000) Subject: bridging: fix rx_handlers return code X-Git-Tag: v3.8.4~8 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f1e2adbba7d7f1fab29713efd3fa47324ef02ad5;p=users%2Fjedix%2Flinux-maple.git bridging: fix rx_handlers return code [ Upstream commit 3bc1b1add7a8484cc4a261c3e128dbe1528ce01f ] The frames for which rx_handlers return RX_HANDLER_CONSUMED are no longer counted as dropped. They are counted as successfully received by 'netif_receive_skb'. 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 Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/core/dev.c b/net/core/dev.c index f64e439b4a00..1339f77e3891 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -3419,6 +3419,7 @@ ncls: } switch (rx_handler(&skb)) { case RX_HANDLER_CONSUMED: + ret = NET_RX_SUCCESS; goto unlock; case RX_HANDLER_ANOTHER: goto another_round;