From: Ralf Baechle Date: Mon, 12 Sep 2005 21:23:06 +0000 (-0700) Subject: [NETROM]: statistics fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6ddcf626fd0a3cbf410ceb483cb76074ed1c5873;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 Signed-off-by: David S. Miller --- diff --git a/net/netrom/nr_dev.c b/net/netrom/nr_dev.c index 431a25384421..4c6a9851ca6e 100644 --- a/net/netrom/nr_dev.c +++ b/net/netrom/nr_dev.c @@ -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; }