Skip to content

Commit 5948378

Browse files
tlfalcondavem330
authored andcommitted
ibmveth: Fix max MTU limit
The max MTU limit defined for ibmveth is not accounting for virtual ethernet buffer overhead, which is twenty-two additional bytes set aside for the ethernet header and eight additional bytes of an opaque handle reserved for use by the hypervisor. Update the max MTU to reflect this overhead. Fixes: d894be5 ("ethernet: use net core MTU range checking in more drivers") Fixes: 110447f ("ethernet: fix min/max MTU typos") Signed-off-by: Thomas Falcon <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 95dcd89 commit 5948378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/ibm/ibmveth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ static int ibmveth_probe(struct vio_dev *dev, const struct vio_device_id *id)
17151715
}
17161716

17171717
netdev->min_mtu = IBMVETH_MIN_MTU;
1718-
netdev->max_mtu = ETH_MAX_MTU;
1718+
netdev->max_mtu = ETH_MAX_MTU - IBMVETH_BUFF_OH;
17191719

17201720
memcpy(netdev->dev_addr, mac_addr_p, ETH_ALEN);
17211721

0 commit comments

Comments
 (0)