]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: dsa: use dsa_is_user_port everywhere
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 26 Oct 2017 15:22:55 +0000 (11:22 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2017 15:00:09 +0000 (00:00 +0900)
commit4a5b85ffe2a001b52d165931ad05d2d620daca3c
treee36bcf74ffadedffa5dfc613bfd946e3245733c5
parent2b3e9891cb607f7c7d5a4b11fb5a6e775e7f3ef4
net: dsa: use dsa_is_user_port everywhere

Most of the DSA code still check ds->enabled_port_mask directly to
inspect a given port type instead of using the provided dsa_is_user_port
helper. Change this.

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>
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/bcm_sf2_cfp.c
drivers/net/dsa/mt7530.c
drivers/net/dsa/qca8k.c
net/dsa/dsa.c
net/dsa/legacy.c