aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mcs814x/files-3.3
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-07-11 08:29:01 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-07-11 08:29:01 +0000
commit62fe65a569838611da381aa807c3cd291142cfa3 (patch)
tree59c7fd2223e2a1421ed8c641844d16d4ed517fa0 /target/linux/mcs814x/files-3.3
parenta8fd72ec337e135bad119f485b78e0799eaa7fc5 (diff)
downloadmaster-187ad058-62fe65a569838611da381aa807c3cd291142cfa3.tar.gz
master-187ad058-62fe65a569838611da381aa807c3cd291142cfa3.tar.bz2
master-187ad058-62fe65a569838611da381aa807c3cd291142cfa3.zip
[mcs814x] nuport-mac: check netif_receive_skb() return value
We did not reassign status to netif_receive_skb() return value, we thus almost always incremented the dropped counter because the descriptor status value never matches the NET_RX_DROP. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32659 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mcs814x/files-3.3')
-rw-r--r--target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c b/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c
index 655749dc4b..fc5a5a15a2 100644
--- a/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c
+++ b/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c
@@ -558,8 +558,7 @@ static int nuport_mac_rx(struct net_device *dev, int limit)
skb->ip_summed = CHECKSUM_UNNECESSARY;
/* Pass the received packet to network layer */
- netif_receive_skb(skb);
-
+ status = netif_receive_skb(skb);
if (status != NET_RX_DROP)
dev->stats.rx_bytes += len - 4; /* Without CRC */
else