summaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa_priv.h
diff options
context:
space:
mode:
authorVivien Didelot2019-07-09 05:31:13 +0200
committerDavid S. Miller2019-07-09 23:49:34 +0200
commit08cc83cc7fd8e6c3670ff545ef2bbfbc01a02d87 (patch)
tree41c6023764ea942a7633cb1d369b84afea75af4a /net/dsa/dsa_priv.h
parentpkt_sched: Include const.h (diff)
downloadkernel-qcow2-linux-08cc83cc7fd8e6c3670ff545ef2bbfbc01a02d87.tar.gz
kernel-qcow2-linux-08cc83cc7fd8e6c3670ff545ef2bbfbc01a02d87.tar.xz
kernel-qcow2-linux-08cc83cc7fd8e6c3670ff545ef2bbfbc01a02d87.zip
net: dsa: add support for BRIDGE_MROUTER attribute
This patch adds support for enabling or disabling the flooding of unknown multicast traffic on the CPU ports, depending on the value of the switchdev SWITCHDEV_ATTR_ID_BRIDGE_MROUTER attribute. The current behavior is kept unchanged but a user can now prevent the CPU conduit to be flooded with a lot of unregistered traffic that the network stack needs to filter in software with e.g.: echo 0 > /sys/class/net/br0/multicast_router Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa_priv.h')
-rw-r--r--net/dsa/dsa_priv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h
index b2be53a13aa0..12f8c7ee4dd8 100644
--- a/net/dsa/dsa_priv.h
+++ b/net/dsa/dsa_priv.h
@@ -150,6 +150,8 @@ int dsa_port_pre_bridge_flags(const struct dsa_port *dp, unsigned long flags,
struct switchdev_trans *trans);
int dsa_port_bridge_flags(const struct dsa_port *dp, unsigned long flags,
struct switchdev_trans *trans);
+int dsa_port_mrouter(struct dsa_port *dp, bool mrouter,
+ struct switchdev_trans *trans);
int dsa_port_vlan_add(struct dsa_port *dp,
const struct switchdev_obj_port_vlan *vlan,
struct switchdev_trans *trans);