bridge: netlink: account for IFLA_BRPORT_{B, M}CAST_FLOOD size and policy
authorTobias Klauser <tklauser@distanz.ch>
Fri, 5 May 2017 14:36:53 +0000 (16:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 May 2017 15:21:03 +0000 (11:21 -0400)
commit9051247dcf9ecee156d2ddac39a4f1ca591f8428
tree260ded0539cf3bcaa605c2dc0334280d02ffa39d
parentaf82455f7dbd9dc20244d80d033721b30d22c065
bridge: netlink: account for IFLA_BRPORT_{B, M}CAST_FLOOD size and policy

The attribute sizes for IFLA_BRPORT_MCAST_FLOOD and
IFLA_BRPORT_BCAST_FLOOD weren't accounted for in br_port_info_size()
when they were added. Do so now and also add the corresponding policy
entries:

Cc: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Cc: Mike Manning <mmanning@brocade.com>
Fixes: b6cb5ac8331b ("net: bridge: add per-port multicast flood flag")
Fixes: 99f906e9ad7b ("bridge: add per-port broadcast flood flag")
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink.c