diff options
| author | David S. Miller <davem@davemloft.net> | 2017-06-04 20:05:15 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-06-04 20:05:15 -0400 |
| commit | 2d9888c5b28d872e0f1d9bb7005a1c6b2d1e9615 (patch) | |
| tree | 588f98e84727f296a0383a1e359359017e6704d2 /include | |
| parent | 1820dd0633b9972028e377ee76e5d40873491d25 (diff) | |
| parent | 14be36c2c96cd18cfa036f230b57ea78d82a303f (diff) | |
Merge branch 'dsa-cleanups-before-multi-CPU-port'
Florian Fainelli says:
====================
net: dsa: Cleanups before multi-CPU port
This patch series does a bunch of cleanups before we start adding support
for multiple CPU ports.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/dsa.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 448d8bc77707..2effb0af9d7c 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -254,7 +254,7 @@ struct dsa_switch { static inline bool dsa_is_cpu_port(struct dsa_switch *ds, int p) { - return ds->dst->cpu_dp == &ds->ports[p]; + return !!(ds->cpu_port_mask & (1 << p)); } static inline bool dsa_is_dsa_port(struct dsa_switch *ds, int p) |
