]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net: bridge: add vlan_tunnel to bridge port policies
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Mon, 13 Nov 2017 16:30:55 +0000 (18:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Nov 2017 12:54:55 +0000 (21:54 +0900)
Found another missing port flag policy entry for IFLA_BRPORT_VLAN_TUNNEL
so add it now.

CC: Roopa Prabhu <roopa@cumulusnetworks.com>
Fixes: efa5356b0d97 ("bridge: per vlan dst_metadata netlink support")
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink.c

index 67bae0f11c6767d258643b36ca6a679ecee7a9f6..d0ef0a8e8831920cb86fc767eb0d756bf89feb46 100644 (file)
@@ -657,6 +657,7 @@ static const struct nla_policy br_port_policy[IFLA_BRPORT_MAX + 1] = {
        [IFLA_BRPORT_MCAST_TO_UCAST] = { .type = NLA_U8 },
        [IFLA_BRPORT_MCAST_FLOOD] = { .type = NLA_U8 },
        [IFLA_BRPORT_BCAST_FLOOD] = { .type = NLA_U8 },
+       [IFLA_BRPORT_VLAN_TUNNEL] = { .type = NLA_U8 },
        [IFLA_BRPORT_GROUP_FWD_MASK] = { .type = NLA_U16 },
        [IFLA_BRPORT_NEIGH_SUPPRESS] = { .type = NLA_U8 },
 };