Skip to content

Commit 7271d4a

Browse files
vladimirolteankuba-moo
authored andcommitted
net: dsa: a5psw: use simple HSR offload helpers
The "a5psw" tagging protocol uses dsa_xmit_port_mask(), which means we can offload HSR packet duplication on transmit. Enable that feature. Cc: "Clément Léger" <[email protected]> Signed-off-by: Vladimir Oltean <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 585943b commit 7271d4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/dsa/rzn1_a5psw.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,8 @@ static const struct dsa_switch_ops a5psw_switch_ops = {
10351035
.port_fdb_add = a5psw_port_fdb_add,
10361036
.port_fdb_del = a5psw_port_fdb_del,
10371037
.port_fdb_dump = a5psw_port_fdb_dump,
1038+
.port_hsr_join = dsa_port_simple_hsr_join,
1039+
.port_hsr_leave = dsa_port_simple_hsr_leave,
10381040
};
10391041

10401042
static int a5psw_mdio_wait_busy(struct a5psw *a5psw)

0 commit comments

Comments
 (0)