Skip to contentSkip to conversation

NET/ROM statistics fix

PATCH In review Ralf Baechle DL5RB 1 participant 1 message Sep 11, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/12 NET/ROM 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.

 net/netrom/nr_dev.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
net/netrom/nr_dev.c +1 -1
Index: net-2.6.git/net/netrom/nr_dev.c
===================================================================
@@ -47,7 +47,7 @@ int nr_rx_ip(struct sk_buff *skb, struct
 	struct net_device_stats *stats = netdev_priv(dev);
 
 	if (!netif_running(dev)) {
-		stats->rx_errors++;
+		stats->rx_dropped++;
 		return 0;
 	}