1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-02-02 20:11:06 +02:00

[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
This commit is contained in:
florian 2012-07-11 08:29:01 +00:00
parent 05b926afe0
commit 261b7b2d42

View File

@ -558,8 +558,7 @@ static int nuport_mac_rx(struct net_device *dev, int limit)
skb->ip_summed = CHECKSUM_UNNECESSARY; skb->ip_summed = CHECKSUM_UNNECESSARY;
/* Pass the received packet to network layer */ /* Pass the received packet to network layer */
netif_receive_skb(skb); status = netif_receive_skb(skb);
if (status != NET_RX_DROP) if (status != NET_RX_DROP)
dev->stats.rx_bytes += len - 4; /* Without CRC */ dev->stats.rx_bytes += len - 4; /* Without CRC */
else else