mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
net: rx_dropped accounting
Under load, netif_rx() can drop incoming packets but administrators dont have a chance to spot which device needs some tuning (RPS activation for example) This patch adds rx_dropped accounting in vlans and tunnels. Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
462fb2af97
commit
8990f468ae
7 changed files with 28 additions and 8 deletions
|
|
@ -725,7 +725,10 @@ static int ip6_tnl_rcv(struct sk_buff *skb, __u16 protocol,
|
|||
skb_tunnel_rx(skb, t->dev);
|
||||
|
||||
dscp_ecn_decapsulate(t, ipv6h, skb);
|
||||
netif_rx(skb);
|
||||
|
||||
if (netif_rx(skb) == NET_RX_DROP)
|
||||
t->dev->stats.rx_dropped++;
|
||||
|
||||
rcu_read_unlock();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -666,7 +666,9 @@ static int pim6_rcv(struct sk_buff *skb)
|
|||
|
||||
skb_tunnel_rx(skb, reg_dev);
|
||||
|
||||
netif_rx(skb);
|
||||
if (netif_rx(skb) == NET_RX_DROP)
|
||||
reg_dev->stats.rx_dropped++;
|
||||
|
||||
dev_put(reg_dev);
|
||||
return 0;
|
||||
drop:
|
||||
|
|
|
|||
|
|
@ -564,7 +564,10 @@ static int ipip6_rcv(struct sk_buff *skb)
|
|||
skb_tunnel_rx(skb, tunnel->dev);
|
||||
|
||||
ipip6_ecn_decapsulate(iph, skb);
|
||||
netif_rx(skb);
|
||||
|
||||
if (netif_rx(skb) == NET_RX_DROP)
|
||||
tunnel->dev->stats.rx_dropped++;
|
||||
|
||||
rcu_read_unlock();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue