]> err.no Git - linux-2.6/commitdiff
[NETROM]: statistics fix
authorRalf Baechle <ralf@linux-mips.org>
Mon, 12 Sep 2005 21:23:06 +0000 (14:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Sep 2005 21:23:06 +0000 (14:23 -0700)
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 <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netrom/nr_dev.c

index 431a253844213f1c375baa552c3a12341e48b9a2..4c6a9851ca6e0e6e0c382537a5ca0f1e2ce4165d 100644 (file)
@@ -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;
        }