mirror of https://github.com/hak5/openwrt-owl.git
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: 32659owl
parent
32eef456df
commit
8765e49fbe
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue