Changeset 32659


Ignore:
Timestamp:
2012-07-11T10:29:01+02:00 (6 years ago)
Author:
florian
Message:

[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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c

    r32486 r32659  
    559559 
    560560                /* Pass the received packet to network layer */ 
    561                 netif_receive_skb(skb); 
    562  
     561                status = netif_receive_skb(skb); 
    563562                if (status != NET_RX_DROP) 
    564563                        dev->stats.rx_bytes += len - 4; /* Without CRC */ 
Note: See TracChangeset for help on using the changeset viewer.