Skip to content

Commit 4af9fa2

Browse files
vladimirolteankuba-moo
authored andcommitted
net: dsa: mv88e6060: use simple HSR offload helpers
The "trailer" tagging protocol uses dsa_xmit_port_mask(), which means we can offload HSR packet duplication on transmit. Enable that feature. Signed-off-by: Vladimir Oltean <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent b6ad21e commit 4af9fa2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/dsa/mv88e6060.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ static const struct dsa_switch_ops mv88e6060_switch_ops = {
297297
.phy_read = mv88e6060_phy_read,
298298
.phy_write = mv88e6060_phy_write,
299299
.phylink_get_caps = mv88e6060_phylink_get_caps,
300+
.port_hsr_join = dsa_port_simple_hsr_join,
301+
.port_hsr_leave = dsa_port_simple_hsr_leave,
300302
};
301303

302304
static int mv88e6060_probe(struct mdio_device *mdiodev)

0 commit comments

Comments
 (0)