aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/myri10ge/myri10ge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c
index d38217a7eb1..a0d1dae39fd 100644
--- a/drivers/net/myri10ge/myri10ge.c
+++ b/drivers/net/myri10ge/myri10ge.c
@@ -1696,11 +1696,11 @@ static int myri10ge_open(struct net_device *dev)
1696 * tell him the buffer is larger, because we only use 1 1696 * tell him the buffer is larger, because we only use 1
1697 * buffer/pkt, and the mtu will prevent overruns. 1697 * buffer/pkt, and the mtu will prevent overruns.
1698 */ 1698 */
1699 big_pow2 = dev->mtu + ETH_HLEN + MXGEFW_PAD; 1699 big_pow2 = dev->mtu + ETH_HLEN + VLAN_HLEN + MXGEFW_PAD;
1700 if (big_pow2 < MYRI10GE_ALLOC_SIZE / 2) { 1700 if (big_pow2 < MYRI10GE_ALLOC_SIZE / 2) {
1701 while ((big_pow2 & (big_pow2 - 1)) != 0) 1701 while ((big_pow2 & (big_pow2 - 1)) != 0)
1702 big_pow2++; 1702 big_pow2++;
1703 mgp->big_bytes = dev->mtu + ETH_HLEN + MXGEFW_PAD; 1703 mgp->big_bytes = dev->mtu + ETH_HLEN + VLAN_HLEN + MXGEFW_PAD;
1704 } else { 1704 } else {
1705 big_pow2 = MYRI10GE_ALLOC_SIZE; 1705 big_pow2 = MYRI10GE_ALLOC_SIZE;
1706 mgp->big_bytes = big_pow2; 1706 mgp->big_bytes = big_pow2;