diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-07-11 08:29:01 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-07-11 08:29:01 +0000 |
commit | 8765e49fbeb61447a01003a92ab54ce883a88389 (patch) | |
tree | f83cdf0eb6f21a62be8cf0b300695227c8154c2b /target/linux/mcs814x/files-3.3/drivers | |
parent | 32eef456dfc3ae58fe4a55a1217608ab94c168c0 (diff) | |
download | mtk-20170518-8765e49fbeb61447a01003a92ab54ce883a88389.zip mtk-20170518-8765e49fbeb61447a01003a92ab54ce883a88389.tar.gz mtk-20170518-8765e49fbeb61447a01003a92ab54ce883a88389.tar.bz2 |
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.
SVN-Revision: 32659
Diffstat (limited to 'target/linux/mcs814x/files-3.3/drivers')
-rw-r--r-- | target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c | 3 |
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 655749d..fc5a5a1 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 |