RE: [PATCH RFC] net: vlan: reverse 4 bytes of vlan header when setting initial MTU

From: David Laight
Date: Mon Oct 21 2019 - 10:46:26 EST


From: Yunsheng Lin
> Sent: 21 October 2019 13:26
> Currently the MTU of vlan netdevice is set to the same MTU
> of the lower device, which requires the underlying device
> to handle it as the comment has indicated:
>
> /* need 4 bytes for extra VLAN header info,
> * hope the underlying device can handle it.
> */
> new_dev->mtu = real_dev->mtu;
>
> Currently most of the physical netdevs seems to handle above
> by reversing 2 * VLAN_HLEN for L2 packet len.

s/reverse/reserve/g

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)