public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net 0/2] fix some bugs in the flow director of HNS3 driver
@ 2026-01-19 13:28 Jijie Shao
  2026-01-19 13:28 ` [PATCH net 1/2] net: hns3: fix wrong GENMASK() for HCLGE_FD_AD_COUNTER_NUM_M Jijie Shao
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jijie Shao @ 2026-01-19 13:28 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, andrew+netdev, horms
  Cc: shenjian15, liuyonglong, chenhao418, lantao5, huangdonghua3,
	yangshuaisong, jonathan.cameron, salil.mehta, netdev,
	linux-kernel, shaojijie

This patchset fixes two bugs in the flow director:
1. Incorrect definition of HCLGE_FD_AD_COUNTER_NUM_M
2. Incorrect assignment of HCLGE_FD_AD_NXT_KEY

Jijie Shao (2):
  net: hns3: fix wrong GENMASK() for HCLGE_FD_AD_COUNTER_NUM_M
  net: hns3: fix the HCLGE_FD_AD_NXT_KEY error setting issue

 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h  | 2 +-
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.33.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH net 1/2] net: hns3: fix wrong GENMASK() for HCLGE_FD_AD_COUNTER_NUM_M
  2026-01-19 13:28 [PATCH net 0/2] fix some bugs in the flow director of HNS3 driver Jijie Shao
@ 2026-01-19 13:28 ` Jijie Shao
  2026-01-19 13:28 ` [PATCH net 2/2] net: hns3: fix the HCLGE_FD_AD_NXT_KEY error setting issue Jijie Shao
  2026-01-21  2:40 ` [PATCH net 0/2] fix some bugs in the flow director of HNS3 driver patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: Jijie Shao @ 2026-01-19 13:28 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, andrew+netdev, horms
  Cc: shenjian15, liuyonglong, chenhao418, lantao5, huangdonghua3,
	yangshuaisong, jonathan.cameron, salil.mehta, netdev,
	linux-kernel, shaojijie

HCLGE_FD_AD_COUNTER_NUM_M should be at GENMASK(19, 13),
rather than at GENMASK(20, 13), because bit 20 is
HCLGE_FD_AD_NXT_STEP_B.

This patch corrects the wrong definition.

Fixes: 117328680288 ("net: hns3: Add input key and action config support for flow director")
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
---
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
index 9bb708fa42f2..416e02e7b995 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
@@ -731,7 +731,7 @@ struct hclge_fd_tcam_config_3_cmd {
 #define HCLGE_FD_AD_QID_M		GENMASK(11, 2)
 #define HCLGE_FD_AD_USE_COUNTER_B	12
 #define HCLGE_FD_AD_COUNTER_NUM_S	13
-#define HCLGE_FD_AD_COUNTER_NUM_M	GENMASK(20, 13)
+#define HCLGE_FD_AD_COUNTER_NUM_M	GENMASK(19, 13)
 #define HCLGE_FD_AD_NXT_STEP_B		20
 #define HCLGE_FD_AD_NXT_KEY_S		21
 #define HCLGE_FD_AD_NXT_KEY_M		GENMASK(25, 21)
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH net 2/2] net: hns3: fix the HCLGE_FD_AD_NXT_KEY error setting issue
  2026-01-19 13:28 [PATCH net 0/2] fix some bugs in the flow director of HNS3 driver Jijie Shao
  2026-01-19 13:28 ` [PATCH net 1/2] net: hns3: fix wrong GENMASK() for HCLGE_FD_AD_COUNTER_NUM_M Jijie Shao
@ 2026-01-19 13:28 ` Jijie Shao
  2026-01-21  2:40 ` [PATCH net 0/2] fix some bugs in the flow director of HNS3 driver patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: Jijie Shao @ 2026-01-19 13:28 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, andrew+netdev, horms
  Cc: shenjian15, liuyonglong, chenhao418, lantao5, huangdonghua3,
	yangshuaisong, jonathan.cameron, salil.mehta, netdev,
	linux-kernel, shaojijie

Use next_input_key instead of counter_id to set HCLGE_FD_AD_NXT_KEY.

Fixes: 117328680288 ("net: hns3: Add input key and action config support for flow director")
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
---
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
index c589baea7c77..b8e2aa19f9e6 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
@@ -5690,7 +5690,7 @@ static int hclge_fd_ad_config(struct hclge_dev *hdev, u8 stage, int loc,
 			HCLGE_FD_AD_COUNTER_NUM_S, action->counter_id);
 	hnae3_set_bit(ad_data, HCLGE_FD_AD_NXT_STEP_B, action->use_next_stage);
 	hnae3_set_field(ad_data, HCLGE_FD_AD_NXT_KEY_M, HCLGE_FD_AD_NXT_KEY_S,
-			action->counter_id);
+			action->next_input_key);
 
 	req->ad_data = cpu_to_le64(ad_data);
 	ret = hclge_cmd_send(&hdev->hw, &desc, 1);
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH net 0/2] fix some bugs in the flow director of HNS3 driver
  2026-01-19 13:28 [PATCH net 0/2] fix some bugs in the flow director of HNS3 driver Jijie Shao
  2026-01-19 13:28 ` [PATCH net 1/2] net: hns3: fix wrong GENMASK() for HCLGE_FD_AD_COUNTER_NUM_M Jijie Shao
  2026-01-19 13:28 ` [PATCH net 2/2] net: hns3: fix the HCLGE_FD_AD_NXT_KEY error setting issue Jijie Shao
@ 2026-01-21  2:40 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-01-21  2:40 UTC (permalink / raw)
  To: Jijie Shao
  Cc: davem, edumazet, kuba, pabeni, andrew+netdev, horms, shenjian15,
	liuyonglong, chenhao418, lantao5, huangdonghua3, yangshuaisong,
	jonathan.cameron, salil.mehta, netdev, linux-kernel

Hello:

This series was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Mon, 19 Jan 2026 21:28:38 +0800 you wrote:
> This patchset fixes two bugs in the flow director:
> 1. Incorrect definition of HCLGE_FD_AD_COUNTER_NUM_M
> 2. Incorrect assignment of HCLGE_FD_AD_NXT_KEY
> 
> Jijie Shao (2):
>   net: hns3: fix wrong GENMASK() for HCLGE_FD_AD_COUNTER_NUM_M
>   net: hns3: fix the HCLGE_FD_AD_NXT_KEY error setting issue
> 
> [...]

Here is the summary with links:
  - [net,1/2] net: hns3: fix wrong GENMASK() for HCLGE_FD_AD_COUNTER_NUM_M
    https://git.kernel.org/netdev/net/c/d57c67c956a1
  - [net,2/2] net: hns3: fix the HCLGE_FD_AD_NXT_KEY error setting issue
    https://git.kernel.org/netdev/net/c/f87e034d16e4

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-01-21  2:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-19 13:28 [PATCH net 0/2] fix some bugs in the flow director of HNS3 driver Jijie Shao
2026-01-19 13:28 ` [PATCH net 1/2] net: hns3: fix wrong GENMASK() for HCLGE_FD_AD_COUNTER_NUM_M Jijie Shao
2026-01-19 13:28 ` [PATCH net 2/2] net: hns3: fix the HCLGE_FD_AD_NXT_KEY error setting issue Jijie Shao
2026-01-21  2:40 ` [PATCH net 0/2] fix some bugs in the flow director of HNS3 driver patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox