diff options
author | Yotam Gigi <yotamg@mellanox.com> | 2017-10-09 11:15:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-09 10:18:11 -0700 |
commit | 0912bda436388a02c72164b4b490b578e64c012e (patch) | |
tree | e9781f8b94b8c472e05281683fa9988c43a4e3a2 /drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h | |
parent | 77041420751fe6d4acf2103b245dcc2b4b7b8360 (diff) | |
download | linux-0912bda436388a02c72164b4b490b578e64c012e.tar.bz2 |
net: bridge: Export bridge multicast router state
Add an access function that, given a bridge netdevice, returns whether the
bridge device is currently an mrouter or not. The function uses the already
existing br_multicast_is_router function to check that.
This function is needed in order to allow ports that join an already
existing bridge to know the current mrouter state of the bridge device.
Together with the bridge device mrouter ports switchdev notifications, it
is possible to have full offloading of the semantics of the bridge device
mcast router state.
Due to the fact that the bridge multicast router status can change in
packet RX path, take the multicast_router bridge spinlock to protect the
read.
Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
Reviewed-by: Nogah Frankel <nogahf@mellanox.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h')
0 files changed, 0 insertions, 0 deletions