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

Cc: Daniel Golle <daniel@makrotopia.org>
Cc: DENG Qingfang <dqfext@gmail.com>
Cc: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Chester A. Unal <chester.a.unal@arinc9.com>
Link: https://patch.msgid.link/20251130131657.65080-13-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mt7530.c

index 1acb570020144a15865f21d26ab4d553fde72737..b9423389c2ef0b6aa637c049ed80965dbede253e 100644 (file)
@@ -3290,6 +3290,8 @@ static const struct dsa_switch_ops mt7530_switch_ops = {
        .set_mac_eee            = mt753x_set_mac_eee,
        .conduit_state_change   = mt753x_conduit_state_change,
        .port_setup_tc          = mt753x_setup_tc,
+       .port_hsr_join          = dsa_port_simple_hsr_join,
+       .port_hsr_leave         = dsa_port_simple_hsr_leave,
 };
 
 static const struct phylink_mac_ops mt753x_phylink_mac_ops = {