]> 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)
commit99c3dc0e197c5bb333b20b1fa5d6300b95138740
tree2d2dbd5e9f92477cbf41d92464bcc13d743eb5f0
parent773c3259b4938e481a7aaaecb564e33d72da5038
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