net: dsa: introduce the dsa_cpu_ports() helper
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 11 May 2022 09:50:16 +0000 (12:50 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 May 2022 23:38:54 +0000 (16:38 -0700)
commit465c3de42b5dcdf0fa8cf996a81de6ba0e8553a3
tree2d2dbd5e9f92477cbf41d92464bcc13d743eb5f0
parent910ee6cce92fc0d0c459967ac95902d7bf3e41bf
net: dsa: introduce the dsa_cpu_ports() helper

Similar to dsa_user_ports() which retrieves a port mask of all user
ports, introduce dsa_cpu_ports() which retrieves the mask of all CPU
ports of a switch.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/dsa.h