Skip to content

Commit

Permalink
[NETROM]: statistics fix
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ralfbaechle authored and davem330 committed Sep 12, 2005
1 parent 3bf0ae7 commit 6ddcf62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netrom/nr_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6ddcf62

Please sign in to comment.