diff options
-rw-r--r-- | include/net/dsa.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 4e0f7e9c5aa1..1e6b4efc80b9 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h | |||
@@ -305,6 +305,16 @@ static inline unsigned int dsa_upstream_port(struct dsa_switch *ds, int port) | |||
305 | return dsa_towards_port(ds, cpu_dp->ds->index, cpu_dp->index); | 305 | return dsa_towards_port(ds, cpu_dp->ds->index, cpu_dp->index); |
306 | } | 306 | } |
307 | 307 | ||
308 | static inline bool dsa_port_is_vlan_filtering(const struct dsa_port *dp) | ||
309 | { | ||
310 | const struct dsa_switch *ds = dp->ds; | ||
311 | |||
312 | if (ds->vlan_filtering_is_global) | ||
313 | return ds->vlan_filtering; | ||
314 | else | ||
315 | return dp->vlan_filtering; | ||
316 | } | ||
317 | |||
308 | typedef int dsa_fdb_dump_cb_t(const unsigned char *addr, u16 vid, | 318 | typedef int dsa_fdb_dump_cb_t(const unsigned char *addr, u16 vid, |
309 | bool is_static, void *data); | 319 | bool is_static, void *data); |
310 | struct dsa_switch_ops { | 320 | struct dsa_switch_ops { |