]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: use a valid default mtu value for vlan over macsec
authorPaolo Abeni <pabeni@redhat.com>
Thu, 14 Jul 2016 16:00:10 +0000 (18:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Jul 2016 03:15:02 +0000 (20:15 -0700)
commit359bb396dd09607e32b91d5f14810e6275e8ed96
tree4871d69274a682be6379696208efafc622d3234d
parent749b164258b11dfd13b949787008a6476a3498fd
vlan: use a valid default mtu value for vlan over macsec

macsec can't cope with mtu frames which need vlan tag insertion, and
vlan device set the default mtu equal to the underlying dev's one.
By default vlan over macsec devices use invalid mtu, dropping
all the large packets.
This patch adds a netif helper to check if an upper vlan device
needs mtu reduction. The helper is used during vlan devices
initialization to set a valid default and during mtu updating to
forbid invalid, too bit, mtu values.
The helper currently only check if the lower dev is a macsec device,
if we get more users, we need to update only the helper (possibly
reserving an additional IFF bit).

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/8021q/vlan_dev.c
net/8021q/vlan_netlink.c