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 <[email protected]> Cc: DENG Qingfang <[email protected]> Cc: Sean Wang <[email protected]> Signed-off-by: Vladimir Oltean <[email protected]> Acked-by: Chester A. Unal <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 017bcff commit 585943b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)