Skip to content

Commit 4e4c00f

Browse files
vladimirolteankuba-moo
authored andcommitted
Documentation: net: dsa: mention simple HSR offload helpers
Keep the documentation up to date. Signed-off-by: Vladimir Oltean <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 9778391 commit 4e4c00f

File tree

1 file changed

+8
-0
lines changed
  • Documentation/networking/dsa

1 file changed

+8
-0
lines changed

Documentation/networking/dsa/dsa.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,14 @@ methods must be implemented:
11191119
- ``port_hsr_leave``: function invoked when a given switch port leaves a
11201120
DANP/DANH and returns to normal operation as a standalone port.
11211121

1122+
Note that the ``NETIF_F_HW_HSR_DUP`` feature relies on transmission towards
1123+
multiple ports, which is generally available whenever the tagging protocol uses
1124+
the ``dsa_xmit_port_mask()`` helper function. If the helper is used, the HSR
1125+
offload feature should also be set. The ``dsa_port_simple_hsr_join()`` and
1126+
``dsa_port_simple_hsr_leave()`` methods can be used as generic implementations
1127+
of ``port_hsr_join`` and ``port_hsr_leave``, if this is the only supported
1128+
offload feature.
1129+
11221130
TODO
11231131
====
11241132

0 commit comments

Comments
 (0)