diff options
| author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-10-26 11:22:51 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-10-28 00:00:09 +0900 |
| commit | bff7b688d5b10a8cb8cecefdea5e255408b78f2f (patch) | |
| tree | 4a75ab18d7dcce75a12d337fb10693a3821b444a /net/dsa/dsa.c | |
| parent | net: faraday: ftmac100: Use BUG_ON instead of if condition followed by BUG. (diff) | |
| download | linux-bff7b688d5b10a8cb8cecefdea5e255408b78f2f.tar.gz linux-bff7b688d5b10a8cb8cecefdea5e255408b78f2f.zip | |
net: dsa: add dsa_is_unused_port helper
As the comment above the chunk states, the b53 driver attempts to
disable the unused ports. But using ds->enabled_port_mask is misleading,
because this mask reports in fact the user ports.
To avoid confusion and fix this, this patch introduces an explicit
dsa_is_unused_port helper which ensures the corresponding bit is not
masked in any of the switch port masks.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa.c')
0 files changed, 0 insertions, 0 deletions
