From: Ralf Baechle Date: Mon, 12 Sep 2005 21:23:06 +0000 (-0700) Subject: [NETROM]: statistics fix X-Git-Tag: v2.6.14-rc1~7^2~12 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=6ddcf626fd0a3cbf410ceb483cb76074ed1c5873;p=linux-2.6-omap-h63xx.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 431a2538442..4c6a9851ca6 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; }