]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita66e6575907feba8786ed0aa850ef5a3a9a7eb57
tree2d2dbd5e9f92477cbf41d92464bcc13d743eb5f0
parentc7866d7ceece720566b606e543223cc2733ffdb0
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