summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorElad Raz <eladr@mellanox.com>2016-01-06 13:01:05 +0100
committerDavid S. Miller <davem@davemloft.net>2016-01-06 14:42:40 -0500
commit81435c33e062cbd4508da6f64655cb0967eeb65f (patch)
treeedb31d2753c82457fbae3e69ed93d488d87c0e7c /include/net
parent08474cc1e6ea71237cab7e4a651a623c9dea1084 (diff)
downloadlinux-81435c33e062cbd4508da6f64655cb0967eeb65f.tar.bz2
switchdev: add bridge vlan_filtering attribute
Adding vlan_filtering attribute to allow hardware vendor to support vlan-aware bridges. Vlan_filtering is a per-bridge attribute. Signed-off-by: Elad Raz <eladr@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-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 6612946167fe..603ae2f88dbb 100644
--- a/include/net/switchdev.h
+++ b/include/net/switchdev.h
@@ -47,6 +47,7 @@ enum switchdev_attr_id {
SWITCHDEV_ATTR_ID_PORT_STP_STATE,
SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS,
SWITCHDEV_ATTR_ID_BRIDGE_AGEING_TIME,
+ SWITCHDEV_ATTR_ID_BRIDGE_VLAN_FILTERING,
};
struct switchdev_attr {
@@ -58,6 +59,7 @@ struct switchdev_attr {
u8 stp_state; /* PORT_STP_STATE */
unsigned long brport_flags; /* PORT_BRIDGE_FLAGS */
u32 ageing_time; /* BRIDGE_AGEING_TIME */
+ bool vlan_filtering; /* BRIDGE_VLAN_FILTERING */
} u;
};