[PATCH] e100: Do not check Rx packet length against mtu

Do not check Rx packet length against mtu - patch from Darren Tucker

Signed-off-by: Mallikarjuna R Chilakala <[email protected]>
Signed-off-by: Ganesh Venkatesan <[email protected]>
Signed-off-by: John Ronciak <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
Malli Chilakala authored and Jeff Garzik committed 2005-08-25 16:18:32 -04:00
1 parent 0572e3da3f
commit 136df52d53
1 file changed
+1 -1
+1 -1
View File
@@ -1539,7 +1539,7 @@ static inline int e100_rx_indicate(struct nic *nic, struct rx *rx,
/* Don't indicate if hardware indicates errors */
nic->net_stats.rx_dropped++;
dev_kfree_skb_any(skb);
} else if(actual_size > nic->netdev->mtu + VLAN_ETH_HLEN) {
} else if(actual_size > ETH_DATA_LEN + VLAN_ETH_HLEN) {
/* Don't indicate oversized frames */
nic->rx_over_length_errors++;
nic->net_stats.rx_dropped++;