diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-09-12 14:23:06 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-09-12 14:23:06 -0700 |
commit | 6ddcf626fd0a3cbf410ceb483cb76074ed1c5873 (patch) | |
tree | 04a50a481833c131e0680c3e508a329b8c530d84 /net/netrom | |
parent | 3bf0ae7b57cade2003ffd0125ee30e80adb93d23 (diff) | |
download | kernel_samsung_smdk4412-6ddcf626fd0a3cbf410ceb483cb76074ed1c5873.tar.gz kernel_samsung_smdk4412-6ddcf626fd0a3cbf410ceb483cb76074ed1c5873.tar.bz2 kernel_samsung_smdk4412-6ddcf626fd0a3cbf410ceb483cb76074ed1c5873.zip |
[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>
Diffstat (limited to 'net/netrom')
-rw-r--r-- | net/netrom/nr_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |