Sfoglia il codice sorgente

[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 <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Ralf Baechle 19 anni fa
parent
commit
6ddcf626fd
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      net/netrom/nr_dev.c

+ 1 - 1
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;
 	}