]> Gentwo Git Trees - linux/.git/commitdiff
net: dsa: yt921x: use simple HSR offloading helpers
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 30 Nov 2025 13:16:48 +0000 (15:16 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Dec 2025 00:45:07 +0000 (16:45 -0800)
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>
drivers/net/dsa/yt921x.c

index 12e1bd5a106172adccbb63d9a74c4d3f2f168888..1c511f5dc6ab23626ab1bda14d93b204447591aa 100644 (file)
@@ -2874,6 +2874,9 @@ static const struct dsa_switch_ops yt921x_dsa_switch_ops = {
        /* mtu */
        .port_change_mtu        = yt921x_dsa_port_change_mtu,
        .port_max_mtu           = yt921x_dsa_port_max_mtu,
+       /* hsr */
+       .port_hsr_leave         = dsa_port_simple_hsr_leave,
+       .port_hsr_join          = dsa_port_simple_hsr_join,
        /* mirror */
        .port_mirror_del        = yt921x_dsa_port_mirror_del,
        .port_mirror_add        = yt921x_dsa_port_mirror_add,