summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2026-04-01 16:34:42 +0300
committerJakub Kicinski <kuba@kernel.org>2026-04-07 04:30:33 +0300
commitf259e08494c47c614ce7b6d3079d1e0d3f30ae66 (patch)
tree5cb7f9a5bb684d9c36bddba75b6e3e8b8097b026 /include/linux/timerqueue.h
parentb0a79590d10847f190ed377d2664377d7068191d (diff)
downloadlinux-f259e08494c47c614ce7b6d3079d1e0d3f30ae66.tar.xz
net: dsa: add bridge member iteration macro
Drivers that offload bridges need to iterate over the ports that are members of a given bridge, for example to rebuild per-port forwarding bitmaps when membership changes. Currently drivers typically open-code this by combining dsa_switch_for_each_user_port() with a dsa_port_offloads_bridge_dev() check, or cache bridge membership within the driver. Add dsa_switch_for_each_bridge_member() macro to express this pattern directly, and use it for the existing dsa_bridge_ports() inline helper. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Link: https://patch.msgid.link/e7136aaa26773f39e805a00fe4ecf13cd2b83fc0.1775049897.git.daniel@makrotopia.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions