Skip to content

add HSR offloading support for DSA switches

George McCollister netdev 4 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 6 repliesApplied 4/4
  2. v24 patches 19 repliesSuperseded
  3. v1 posting 2/24 patches 12 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC posting 1/23 patches8 repliesSuperseded

Changes in v3 from the cover letter

* Return -EOPNOTSUPP instead of 0 in dsa_switch_hsr_join and dsa_switch_hsr_leave. (Vladimir Oltean)
* Only allow ports 1 and 2 to be HSR/PRP redundant ports. (Tobias Waldekranz)
* Set and remove HSR features for both redundant ports. (Vladimir Oltean)
* Change port_hsr_leave() to return int instead of void.
* Remove hsr_init_skb() proto argument. (Vladimir Oltean)

Patches in v3 All 4 applied

#Subject and filesSizeRepliesApplied
1/4net: hsr: generate supervision frame without HSR/PRP tagnet/hsr/hsr_device.c net/hsr/hsr_forward.c+14 -331 replyApplied
2/4net: hsr: add offloading supportDocumentation/networking/netdev-features.rst include/linux/if_hsr.h include/linux/netdev_features.h +9 more+109 -261 replyApplied
3/4net: dsa: add support for offloading HSRinclude/net/dsa.h net/dsa/dsa_priv.h net/dsa/port.c +2 more+96 -02 repliesApplied
4/4net: dsa: xrs700x: add HSR offloading supportdrivers/net/dsa/xrs700x/xrs700x.c drivers/net/dsa/xrs700x/xrs700x_reg.h net/dsa/tag_xrs700x.c+132 -12 repliesApplied

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchFlorian FainelliVladimir Oltean
1/4R-b T-b
2/4R-b
3/4R-b R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH net-next v3 0/4] add HSR offloading support for DSA switches

Add support for offloading HSR/PRP (IEC 62439-3) tag insertion, tag removal, forwarding and duplication on DSA switches. This series adds offloading to the xrs700x DSA driver.

Changes since RFC:
* Split hsr and dsa patches. (Florian Fainelli)

Changes since v1:
* Fixed some typos/wording. (Vladimir Oltean)
* eliminate IFF_HSR and use is_hsr_master instead. (Vladimir Oltean)
* Make hsr_handle_sup_frame handle skb_std as well (required when offloading)
* Don't add hsr tag for HSR v0 supervisory frames.
* Fixed tag insertion offloading for PRP.

Changes since v2:
* Return -EOPNOTSUPP instead of 0 in dsa_switch_hsr_join and dsa_switch_hsr_leave. (Vladimir Oltean)
* Only allow ports 1 and 2 to be HSR/PRP redundant ports. (Tobias Waldekranz)
* Set and remove HSR features for both redundant ports. (Vladimir Oltean)
* Change port_hsr_leave() to return int instead of void.
* Remove hsr_init_skb() proto argument. (Vladimir Oltean)

George McCollister (4):
net: hsr: generate supervision frame without HSR/PRP tag
net: hsr: add offloading support
net: dsa: add support for offloading HSR
net: dsa: xrs700x: add HSR offloading support

 Documentation/networking/netdev-features.rst |  21 +++++
 drivers/net/dsa/xrs700x/xrs700x.c            | 121 +++++++++++++++++++++++++++
 drivers/net/dsa/xrs700x/xrs700x_reg.h        |   5 ++
 include/linux/if_hsr.h                       |  27 ++++++
 include/linux/netdev_features.h              |   9 ++
 include/net/dsa.h                            |  13 +++
 net/dsa/dsa_priv.h                           |  11 +++
 net/dsa/port.c                               |  34 ++++++++
 net/dsa/slave.c                              |  14 ++++
 net/dsa/switch.c                             |  24 ++++++
 net/dsa/tag_xrs700x.c                        |   7 +-
 net/ethtool/common.c                         |   4 +
 net/hsr/hsr_device.c                         |  53 +++---------
 net/hsr/hsr_device.h                         |   1 -
 net/hsr/hsr_forward.c                        |  35 +++++++-
 net/hsr/hsr_forward.h                        |   1 +
 net/hsr/hsr_framereg.c                       |   2 +
 net/hsr/hsr_main.c                           |  11 +++
 net/hsr/hsr_main.h                           |   8 +-
 net/hsr/hsr_slave.c                          |  10 ++-
 20 files changed, 351 insertions(+), 60 deletions(-)
 create mode 100644 include/linux/if_hsr.h
Signature · 1 line
2.11.0