提交 de3c4507 编写于 作者: B Brice Goglin 提交者: Jeff Garzik

[PATCH] myri10ge: Full vlan frame in small_bytes

Receive full vlan frames into smalls when running with a jumbo MTU.
Signed-off-by: NBrice Goglin <brice@myri.com>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 52ea6fb3
...@@ -1650,8 +1650,8 @@ static int myri10ge_open(struct net_device *dev) ...@@ -1650,8 +1650,8 @@ static int myri10ge_open(struct net_device *dev)
? (128 - MXGEFW_PAD) ? (128 - MXGEFW_PAD)
: (SMP_CACHE_BYTES - MXGEFW_PAD); : (SMP_CACHE_BYTES - MXGEFW_PAD);
else else
/* enough for an ETH_DATA_LEN frame */ /* enough for a vlan encapsulated ETH_DATA_LEN frame */
mgp->small_bytes = ETH_FRAME_LEN; mgp->small_bytes = VLAN_ETH_FRAME_LEN;
/* Override the small buffer size? */ /* Override the small buffer size? */
if (myri10ge_small_bytes > 0) if (myri10ge_small_bytes > 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册