Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de3c4507 authored by Brice Goglin's avatar Brice Goglin Committed by Jeff Garzik
Browse files

[PATCH] myri10ge: Full vlan frame in small_bytes



Receive full vlan frames into smalls when running with a jumbo MTU.

Signed-off-by: default avatarBrice Goglin <brice@myri.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 52ea6fb3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)