mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 21:50:53 +07:00
[PATCH] myri10ge: Full vlan frame in small_bytes
Receive full vlan frames into smalls when running with a jumbo MTU. Signed-off-by: Brice Goglin <brice@myri.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
52ea6fb39b
commit
de3c450704
@ -1650,8 +1650,8 @@ static int myri10ge_open(struct net_device *dev)
|
||||
? (128 - MXGEFW_PAD)
|
||||
: (SMP_CACHE_BYTES - MXGEFW_PAD);
|
||||
else
|
||||
/* enough for an ETH_DATA_LEN frame */
|
||||
mgp->small_bytes = ETH_FRAME_LEN;
|
||||
/* enough for a vlan encapsulated ETH_DATA_LEN frame */
|
||||
mgp->small_bytes = VLAN_ETH_FRAME_LEN;
|
||||
|
||||
/* Override the small buffer size? */
|
||||
if (myri10ge_small_bytes > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user