[PATCH net-next] hyperv: Add processing of MTU reduced by the host

David Miller davem at davemloft.net
Wed Nov 12 19:46:40 UTC 2014


From: Haiyang Zhang <haiyangz at microsoft.com>
Date: Tue, 11 Nov 2014 15:27:52 -0800

> -	if (mtu < 68 || mtu > limit)
> +	if (mtu < ETH_DATA_LEN || mtu > limit)
>  		return -EINVAL;

This is not correct.

The test is against the minimally supported MTU, which should
be 68 not ETH_DATA_LEN which is 1500.


More information about the devel mailing list