aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/switchdev.h
diff options
context:
space:
mode:
authorNogah Frankel <nogahf@mellanox.com>2017-02-09 08:54:40 -0500
committerDavid S. Miller <davem@davemloft.net>2017-02-10 11:46:38 -0500
commit147c1e9b902c25c868024260d24bb0b1dac1433d (patch)
tree0766e9ac71fd1cb5fe7a421808b3680ade60575a /include/net/switchdev.h
parent94134bf89a4747ac370ffea614a2ba483edf0ccc (diff)
switchdev: bridge: Offload multicast disabled
Offload multicast disabled flag, for more accurate mc flood behavior: When it is on, the mdb should be ignored. When it is off, unregistered mc packets should be flooded to mc router ports. Signed-off-by: Nogah Frankel <nogahf@mellanox.com> Signed-off-by: Yotam Gigi <yotamg@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Acked-by: Ivan Vecera <ivecera@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/switchdev.h')
-rw-r--r--include/net/switchdev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/switchdev.h b/include/net/switchdev.h
index eba80c4fc56f..2971c2a2cdf2 100644
--- a/include/net/switchdev.h
+++ b/include/net/switchdev.h
@@ -48,6 +48,7 @@ enum switchdev_attr_id {
48 SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS, 48 SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS,
49 SWITCHDEV_ATTR_ID_BRIDGE_AGEING_TIME, 49 SWITCHDEV_ATTR_ID_BRIDGE_AGEING_TIME,
50 SWITCHDEV_ATTR_ID_BRIDGE_VLAN_FILTERING, 50 SWITCHDEV_ATTR_ID_BRIDGE_VLAN_FILTERING,
51 SWITCHDEV_ATTR_ID_BRIDGE_MC_DISABLED,
51}; 52};
52 53
53struct switchdev_attr { 54struct switchdev_attr {
@@ -62,6 +63,7 @@ struct switchdev_attr {
62 unsigned long brport_flags; /* PORT_BRIDGE_FLAGS */ 63 unsigned long brport_flags; /* PORT_BRIDGE_FLAGS */
63 clock_t ageing_time; /* BRIDGE_AGEING_TIME */ 64 clock_t ageing_time; /* BRIDGE_AGEING_TIME */
64 bool vlan_filtering; /* BRIDGE_VLAN_FILTERING */ 65 bool vlan_filtering; /* BRIDGE_VLAN_FILTERING */
66 bool mc_disabled; /* MC_DISABLED */
65 } u; 67 } u;
66}; 68};
67 69