diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-02-21 00:35:04 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-21 23:53:07 +0100 |
commit | 57652796aa979d5754406c8177f716cb2cf60616 (patch) | |
tree | 45f7bcc667916bc0e0f6e5f2c62225b3b4050741 /include/net/dsa.h | |
parent | bridge: remove redundant check on err in br_multicast_ipv4_rcv (diff) | |
download | linux-57652796aa979d5754406c8177f716cb2cf60616.tar.xz linux-57652796aa979d5754406c8177f716cb2cf60616.zip |
net: dsa: add support for bridge flags
The Linux bridge implementation allows various properties of the bridge
to be controlled, such as flooding unknown unicast and multicast frames.
This patch adds the necessary DSA infrastructure to allow the Linux
bridge support to control these properties for DSA switches.
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
[florian: Add missing dp and ds variables declaration to fix build]
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 7f2a668ef2cc..2c2c10812814 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -400,6 +400,8 @@ struct dsa_switch_ops { void (*port_stp_state_set)(struct dsa_switch *ds, int port, u8 state); void (*port_fast_age)(struct dsa_switch *ds, int port); + int (*port_egress_floods)(struct dsa_switch *ds, int port, + bool unicast, bool multicast); /* * VLAN support |