[PATCH net-next v4 1/2] net: dsa: tag_yt921x: handle ACL tag code

From: David Yang

Date: Thu May 28 2026 - 15:40:38 EST


This prepares for upcoming ACL features that use forward
redirection in ACL rules.

Signed-off-by: David Yang <mmyangfl@xxxxxxxxx>
---
net/dsa/tag_yt921x.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/net/dsa/tag_yt921x.c b/net/dsa/tag_yt921x.c
index aefef8c770e3..f3ced99b1c85 100644
--- a/net/dsa/tag_yt921x.c
+++ b/net/dsa/tag_yt921x.c
@@ -49,6 +49,7 @@
*/
enum yt921x_tag_code {
YT921X_TAG_CODE_FORWARD = 0,
+ YT921X_TAG_CODE_ACL = 0x17,
YT921X_TAG_CODE_UNK_UCAST = 0x19,
YT921X_TAG_CODE_UNK_MCAST = 0x1a,
YT921X_TAG_CODE_PORT_COPY = 0x1b,
@@ -129,6 +130,7 @@ yt921x_tag_rcv(struct sk_buff *skb, struct net_device *netdev)
/* Already forwarded by hardware */
dsa_default_offload_fwd_mark(skb);
break;
+ case YT921X_TAG_CODE_ACL:
case YT921X_TAG_CODE_UNK_UCAST:
case YT921X_TAG_CODE_UNK_MCAST:
/* NOTE: hardware doesn't distinguish between TRAP (copy
--
2.53.0