]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bridging: fix rx_handlers return code
authorCristian Bercaru <B43982@freescale.com>
Fri, 8 Mar 2013 07:03:38 +0000 (07:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2013 20:10:58 +0000 (13:10 -0700)
commitf1e2adbba7d7f1fab29713efd3fa47324ef02ad5
tree2e1d99cf3f4c7c3bac8c07556c3880242e1ca84c
parentd99d0841478544ae82e224deb5101fec4ca2ff65
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 <B43982@freescale.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/dev.c