aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorVladimir Oltean <olteanv@gmail.com>2019-04-28 21:45:43 +0300
committerDavid S. Miller <davem@davemloft.net>2019-04-30 23:05:28 -0400
commit33162e9a0590f16e1b21be764caae517e2bb310c (patch)
tree92868bb5ede7bb5a76b650d19eab0f6e3bae915a /include/net/dsa.h
parentnet: dsa: Fix pharse -> phase typo (diff)
downloadlinux-dev-33162e9a0590f16e1b21be764caae517e2bb310c.tar.xz
linux-dev-33162e9a0590f16e1b21be764caae517e2bb310c.zip
net: dsa: Store vlan_filtering as a property of dsa_port
This allows drivers to query the VLAN setting imposed by the bridge driver directly from DSA, instead of keeping their own state based on the .port_vlan_filtering callback. Signed-off-by: Vladimir Oltean <olteanv@gmail.com> Reviewed-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index b550f7bb5314..79a87913126c 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -161,6 +161,7 @@ struct dsa_port {
const char *mac;
struct device_node *dn;
unsigned int ageing_time;
+ bool vlan_filtering;
u8 stp_state;
struct net_device *bridge_dev;
struct devlink_port devlink_port;