Skip to content

Commit 42e63b1

Browse files
vladimirolteankuba-moo
authored andcommitted
net: dsa: yt921x: use simple HSR offloading helpers
Accelerate TX packet duplication with HSR rings. Cc: David Yang <mmyangfl@gmail.com> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Link: https://patch.msgid.link/20251130131657.65080-7-vladimir.oltean@nxp.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 0e75bfe commit 42e63b1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/net/dsa/yt921x.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2874,6 +2874,9 @@ static const struct dsa_switch_ops yt921x_dsa_switch_ops = {
28742874
/* mtu */
28752875
.port_change_mtu = yt921x_dsa_port_change_mtu,
28762876
.port_max_mtu = yt921x_dsa_port_max_mtu,
2877+
/* hsr */
2878+
.port_hsr_leave = dsa_port_simple_hsr_leave,
2879+
.port_hsr_join = dsa_port_simple_hsr_join,
28772880
/* mirror */
28782881
.port_mirror_del = yt921x_dsa_port_mirror_del,
28792882
.port_mirror_add = yt921x_dsa_port_mirror_add,

0 commit comments

Comments
 (0)