Skip to content

Commit b6ad21e

Browse files
vladimirolteankuba-moo
authored andcommitted
net: dsa: lantiq_gswip: use simple HSR offload helpers
Both the "gswip" and "gsw1xx" protocols use dsa_xmit_port_mask(), so they are compatible with accelerating TX packet duplication for HSR rings. Enable that feature by setting the port_hsr_join() and port_hsr_leave() operations to the simple helpers provided by DSA. Cc: Hauke Mehrtens <[email protected]> Cc: Daniel Golle <[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 6db3194 commit b6ad21e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/dsa/lantiq/lantiq_gswip_common.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,6 +1652,8 @@ static const struct dsa_switch_ops gswip_switch_ops = {
16521652
.get_sset_count = gswip_get_sset_count,
16531653
.set_mac_eee = gswip_set_mac_eee,
16541654
.support_eee = gswip_support_eee,
1655+
.port_hsr_join = dsa_port_simple_hsr_join,
1656+
.port_hsr_leave = dsa_port_simple_hsr_leave,
16551657
};
16561658

16571659
void gswip_disable_switch(struct gswip_priv *priv)

0 commit comments

Comments
 (0)