]> Gentwo Git Trees - linux/.git/commitdiff
net: dsa: hellcreek: use simple HSR offload helpers
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 30 Nov 2025 13:16:53 +0000 (15:16 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Dec 2025 00:45:08 +0000 (16:45 -0800)
The "hellcreek" tagging protocol uses dsa_xmit_port_mask(), which means
we can offload HSR packet duplication on transmit. Enable that feature.

Cc: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20251130131657.65080-12-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/hirschmann/hellcreek.c

index e0b4758ca583073251d688ad389b00293f136d9c..dd5f263ab98423f3432bbf935d55aa3db863ed0e 100644 (file)
@@ -1926,6 +1926,8 @@ static const struct dsa_switch_ops hellcreek_ds_ops = {
        .port_vlan_filtering   = hellcreek_vlan_filtering,
        .setup                 = hellcreek_setup,
        .teardown              = hellcreek_teardown,
+       .port_hsr_join         = dsa_port_simple_hsr_join,
+       .port_hsr_leave        = dsa_port_simple_hsr_leave,
 };
 
 static int hellcreek_probe(struct platform_device *pdev)