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

From: Yunsheng Lin
Date: Mon Oct 21 2019 - 21:28:51 EST


On 2019/10/21 22:46, David Laight wrote:
> 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

Thanks.

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