aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlge
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/qlge')
-rw-r--r--drivers/net/qlge/qlge_main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
index 0775b4d7d3ff..738691ddcc04 100644
--- a/drivers/net/qlge/qlge_main.c
+++ b/drivers/net/qlge/qlge_main.c
@@ -1532,6 +1532,15 @@ static void ql_process_mac_rx_intr(struct ql_adapter *qdev,
1532 dev_kfree_skb_any(skb); 1532 dev_kfree_skb_any(skb);
1533 return; 1533 return;
1534 } 1534 }
1535
1536 /* The max framesize filter on this chip is set higher than
1537 * MTU since FCoE uses 2k frames.
1538 */
1539 if (skb->len > ndev->mtu + ETH_HLEN) {
1540 dev_kfree_skb_any(skb);
1541 return;
1542 }
1543
1535 prefetch(skb->data); 1544 prefetch(skb->data);
1536 skb->dev = ndev; 1545 skb->dev = ndev;
1537 if (ib_mac_rsp->flags1 & IB_MAC_IOCB_RSP_M_MASK) { 1546 if (ib_mac_rsp->flags1 & IB_MAC_IOCB_RSP_M_MASK) {