[PATCH net-next v2 2/7] net: dsa: tag_mxl862xx: use dsa_link_local_offload_fwd_mark()

From
Oleksij Rempel <o.rempel@pengutronix.de>
Date
2026-12-01 11:59:54
Also in
bridge
Reply to
Oleksij Rempel, 2026-12-01
Use the common helper instead of the open-coded check. No change in
behaviour.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
Changes in v2:
- New in v2 (Andrew).
---
 net/dsa/tag_mxl862xx.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/net/dsa/tag_mxl862xx.c b/net/dsa/tag_mxl862xx.c
index 87b80ddf094632fd2842be9ef63daa277fd5596c..163b160ef19d7448eaefa601b267b5f0dddf1fe9 100644
--- a/net/dsa/tag_mxl862xx.c
+++ b/net/dsa/tag_mxl862xx.c
@@ -89,8 +89,7 @@ static struct sk_buff *mxl862_tag_rcv(struct sk_buff *skb,
 		return NULL;
 	}
 
-	if (likely(!is_link_local_ether_addr(eth_hdr(skb)->h_dest)))
-		dsa_default_offload_fwd_mark(skb);
+	dsa_link_local_offload_fwd_mark(skb, DSA_LINK_LOCAL_ALL);
 
 	/* remove the MxL862xx special tag between the MAC addresses and the
 	 * current ethertype field.
-- 
2.47.3
Thread (10 messages) 10 messages, 2 authors, last reply 1d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help