mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
net: dsa: tag_yt921x: handle ACL tag code
This prepares for upcoming ACL features that use forward redirection in ACL rules. Signed-off-by: David Yang <mmyangfl@gmail.com> Link: https://patch.msgid.link/20260606130011.307812-2-mmyangfl@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
04fc949bd3
commit
cf14ed4980
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user