Skip to content

Commit 017bcff

Browse files
vladimirolteankuba-moo
authored andcommitted
net: dsa: hellcreek: use simple HSR offload helpers
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 <[email protected]> Signed-off-by: Vladimir Oltean <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 4af9fa2 commit 017bcff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/dsa/hirschmann/hellcreek.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1926,6 +1926,8 @@ static const struct dsa_switch_ops hellcreek_ds_ops = {
19261926
.port_vlan_filtering = hellcreek_vlan_filtering,
19271927
.setup = hellcreek_setup,
19281928
.teardown = hellcreek_teardown,
1929+
.port_hsr_join = dsa_port_simple_hsr_join,
1930+
.port_hsr_leave = dsa_port_simple_hsr_leave,
19291931
};
19301932

19311933
static int hellcreek_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)