Skip to contentSkip to conversation

bridging: fix rx_handlers return code

PATCH Applied Cristian Bercaru 3 participants 3 messages Mar 8, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 9610389..609ac45 100644
@@ -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
#1 lore raw
Quoted 9 lines · Cristian Bercaru

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'.

---

maintainer Applied
#2 lore raw

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_handlers return RX_HANDLER_CONSUMED are 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'.

---

Applied, thanks.