]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Aug 2016 07:33:16 +0000 (09:33 +0200)
commit053554b934a6b228386c2ff925faaaa51712abed
tree24c05f20fafe5e2ac9efc0be0777a31ce8cecf72
parentd50a80bb26099d166e710a4ba074216f06a0011d
vlan: use a valid default mtu value for vlan over macsec

[ Upstream commit 18d3df3eab23796d7f852f9c6bb60962b8372ced ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/netdevice.h
net/8021q/vlan_dev.c
net/8021q/vlan_netlink.c