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

From: David Miller
Date: Wed Nov 12 2014 - 14:48:27 EST


From: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/