Commit 419bd851 authored by Cristian Bercaru's avatar Cristian Bercaru Committed by Ben Hutchings

bridging: fix rx_handlers return code

[ Upstream commit 3bc1b1ad ]

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: default avatarCristian Bercaru <B43982@freescale.com>
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent d0cdda8c
...@@ -3299,6 +3299,7 @@ static int __netif_receive_skb(struct sk_buff *skb) ...@@ -3299,6 +3299,7 @@ static int __netif_receive_skb(struct sk_buff *skb)
} }
switch (rx_handler(&skb)) { switch (rx_handler(&skb)) {
case RX_HANDLER_CONSUMED: case RX_HANDLER_CONSUMED:
ret = NET_RX_SUCCESS;
goto out; goto out;
case RX_HANDLER_ANOTHER: case RX_HANDLER_ANOTHER:
goto another_round; goto another_round;
......
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