]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: hns3: support two more actions for tc flow
authorJijie Shao <shaojijie@huawei.com>
Wed, 10 Jun 2026 06:06:15 +0000 (14:06 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sun, 14 Jun 2026 00:56:18 +0000 (17:56 -0700)
commite6703605b47edbb03f60eaf0cc329fe789f8bd62
tree2c590e59bfe9e4231d843918557195e4cb782834
parent1ad6f1ff3e96c7ee888475740c8acdaf822e0813
net: hns3: support two more actions for tc flow

Currently, the driver supports only one action:HCLGE_FD_ACTION_SELECT_TC.

This patch adds support for HCLGE_FD_ACTION_SELECT_QUEUE and
HCLGE_FD_ACTION_DROP_PACKET.

A rule can have only one action. Therefore, the driver intercepts rules
that have multiple actions or no action.

Note: The driver considers cls_flower->classid as an action:
HCLGE_FD_ACTION_SELECT_TC.

Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Link: https://patch.msgid.link/20260610060618.834987-4-shaojijie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c