Re: [PATCH net-next 4/6] net: hns3: support IP and tunnel VNI dissectors for tc flow

From: Jijie Shao

Date: Thu May 21 2026 - 06:39:12 EST



on 2026/5/20 9:48, Jakub Kicinski wrote:
On Mon, 18 May 2026 17:35:24 +0800 Jijie Shao wrote:
Currently, the driver does not support FLOW_DISSECTOR_KEY_IP and
FLOW_DISSECTOR_KEY_ENC_KEYID. But the hardware supports
ip_tos (FLOW_DISSECTOR_KEY_IP) and
outer_tun_vni (FLOW_DISSECTOR_KEY_ENC_KEYID).

This patch adds support for FLOW_DISSECTOR_KEY_IP and
FLOW_DISSECTOR_KEY_ENC_KEYID.

Additionally, since tc flow cannot effectively support
l2_user_def, l3_user_def, and l4_user_def,
this patch explicitly sets them to not be used.
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:5771:37: warning: restricted __le32 degrades to integer
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:5773:37: warning: restricted __le32 degrades to integer
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:7369:31: warning: restricted __be32 degrades to integer


Thank you for the reminder.
I noticed that when I compiled it myself before, there was an issue with the sparse version being unavailable,
which I hadn't noticed earlier.

After I upgrade sparse from 0.6.4 to 0.6.5-rc1, I will fix these warnings and resend these patches.
Reminder: https://www.kernel.org/pub/software/devel/sparse/dist/ does not collect the latest version.

Thanks,
Jijie Shao