mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[NETROM]: statistics fix
Calling an incoming NET/ROM-encapsulated IP packet an error if the interface isn't up is probably a bit over the top, so count it as dropped instead of an error. Signed-off-by: Ralf Baechle DL5RB <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3bf0ae7b57
commit
6ddcf626fd
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ int nr_rx_ip(struct sk_buff *skb, struct net_device *dev)
|
|||
struct net_device_stats *stats = netdev_priv(dev);
|
||||
|
||||
if (!netif_running(dev)) {
|
||||
stats->rx_errors++;
|
||||
stats->rx_dropped++;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue