Skip to content

Commit 585943b

Browse files
vladimirolteankuba-moo
authored andcommitted
net: dsa: mt7530: use simple HSR offload helpers
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>
1 parent 017bcff commit 585943b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/net/dsa/mt7530.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3290,6 +3290,8 @@ static const struct dsa_switch_ops mt7530_switch_ops = {
32903290
.set_mac_eee = mt753x_set_mac_eee,
32913291
.conduit_state_change = mt753x_conduit_state_change,
32923292
.port_setup_tc = mt753x_setup_tc,
3293+
.port_hsr_join = dsa_port_simple_hsr_join,
3294+
.port_hsr_leave = dsa_port_simple_hsr_leave,
32933295
};
32943296

32953297
static const struct phylink_mac_ops mt753x_phylink_mac_ops = {

0 commit comments

Comments
 (0)