Skip to content

net: dsa: Add ability to elect CPU port

Florian Fainelli netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: dsa: Add ability to elect CPU portinclude/net/dsa.h net/dsa/dsa2.c+16 -42 replies
2/2net: dsa: b53: Add CPU port election callbackdrivers/net/dsa/b53/b53_common.c drivers/net/dsa/b53/b53_priv.h drivers/net/dsa/bcm_sf2.c+19 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/2] net: dsa: Add ability to elect CPU port

Hi all,

This patch series solves a problem we have with Broadcom switches whereby multiple CPU ports can be defined, and while they should all be possible choices, it may not be desirable to use, say port 5 instead of port 8 because port 8 is hard wired as the management port in the switch logic, or because it simply offers more features.

Add an election callback into the driver to allow the selection of a particular CPU port when multiple are defined.

Florian Fainelli (2):
net: dsa: Add ability to elect CPU port
net: dsa: b53: Add CPU port election callback

 drivers/net/dsa/b53/b53_common.c | 17 +++++++++++++++++
 drivers/net/dsa/b53/b53_priv.h   |  1 +
 drivers/net/dsa/bcm_sf2.c        |  1 +
 include/net/dsa.h                |  1 +
 net/dsa/dsa2.c                   | 19 +++++++++++++++----
 5 files changed, 35 insertions(+), 4 deletions(-)
Signature · 1 line
2.17.1