Thread (7 messages) 7 messages, 2 authors, 2023-08-31
STALE1024d
Revisions (5)
  1. v1 current
  2. v2 [diff vs current]
  3. v3 [diff vs current]
  4. v5 [diff vs current]
  5. v6 [diff vs current]

[PATCH 1/4] net: dsa: Extend the dsa_switch structure to hold info about HSR ports

From: Lukasz Majewski <lukma@denx.de>
Date: 2023-08-29 12:13:20
Also in: lkml
Subsystem: networking [dsa], networking [general], the rest · Maintainers: Andrew Lunn, Vladimir Oltean, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

Information about HSR aware ports in a DSA switch can be helpful when
one needs tags to be adjusted before the HSR frame is sent.

For example - with ksz9477 switch - the TAG needs to be adjusted to have
both HSR ports marked in tag to allow execution of HW based frame
duplication.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
---
 include/net/dsa.h | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/include/net/dsa.h b/include/net/dsa.h
index d309ee7ed04b..15274afc42bb 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -470,6 +470,9 @@ struct dsa_switch {
 	/* Number of switch port queues */
 	unsigned int		num_tx_queues;
 
+	/* Bitmask indicating ports supporting HSR */
+	u16                     hsr_ports;
+
 	/* Drivers that benefit from having an ID associated with each
 	 * offloaded LAG should set this to the maximum number of
 	 * supported IDs. DSA will then maintain a mapping of _at
-- 
2.20.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help