bridging: fix rx_handlers return code
Subsystems (2)
PATCH 1/1 bridging: fix rx_handlers return code
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'.
--- net/core/dev.c | 1 + 1 file changed, 1 insertion(+)
net/core/dev.c +1 -0
@@ -3444,6 +3444,7 @@ ncls: }switch (rx_handler (&skb)) {case RX_HANDLER_CONSUMED : + ret =NET_RX_SUCCESS ; goto unlock;case RX_HANDLER_ANOTHER : goto another_round;
Signature · 1 line
1.7.11.7
Quoted 9 lines · Cristian Bercaru
The frames for which
rx_handlersreturnRX_HANDLER_CONSUMEDare 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 <[email protected]>---
From: Eric Dumazet <[email protected]>
Date: Fri, 08 Mar 2013 09:14:10 -0800
Quoted 5 lines · Cristian Bercaru
Quoted 4 lines
The frames for which
rx_handlersreturnRX_HANDLER_CONSUMEDare no longer counted as dropped. They are counted as successfully received by 'netif_receive_skb'.
Quoted 7 lines
Quoted 5 lines
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 <[email protected]>---
Signed-off-by Eric Dumazet <[email protected]>
Applied, thanks.