diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2017-10-30 13:56:33 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-01 06:32:45 +0300 |
commit | 1a3fbd3fdec55007f1b18cf96c4a9e486c6e875b (patch) | |
tree | ab05cdc82d1d9a957d572d8a3f0051e7585c1f93 /net/bridge | |
parent | d2fcde08ee06b18293bd47697e3953854aefa7a4 (diff) | |
download | linux-1a3fbd3fdec55007f1b18cf96c4a9e486c6e875b.tar.xz |
net: bridge: add neigh_suppress to bridge port policies
Add an entry for IFLA_BRPORT_NEIGH_SUPPRESS to bridge port policies.
Fixes: 821f1b21cabb ("bridge: add new BR_NEIGH_SUPPRESS port flag to suppress arp and nd flood")
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/br_netlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index e732403669c6..26aeb0b5cf30 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c @@ -651,6 +651,7 @@ static const struct nla_policy br_port_policy[IFLA_BRPORT_MAX + 1] = { [IFLA_BRPORT_MCAST_FLOOD] = { .type = NLA_U8 }, [IFLA_BRPORT_BCAST_FLOOD] = { .type = NLA_U8 }, [IFLA_BRPORT_GROUP_FWD_MASK] = { .type = NLA_U16 }, + [IFLA_BRPORT_NEIGH_SUPPRESS] = { .type = NLA_U8 }, }; /* Change the state of the port and notify spanning tree */ |