Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'fix-some-bugs-in-the-flow-director-of-hns3-driver'

Jijie Shao says:

====================
fix some bugs in the flow director of HNS3 driver

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
====================

Link: https://patch.msgid.link/20260119132840.410513-1-shaojijie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+2 -2
+1 -1
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
··· 731 731 #define HCLGE_FD_AD_QID_M GENMASK(11, 2) 732 732 #define HCLGE_FD_AD_USE_COUNTER_B 12 733 733 #define HCLGE_FD_AD_COUNTER_NUM_S 13 734 - #define HCLGE_FD_AD_COUNTER_NUM_M GENMASK(20, 13) 734 + #define HCLGE_FD_AD_COUNTER_NUM_M GENMASK(19, 13) 735 735 #define HCLGE_FD_AD_NXT_STEP_B 20 736 736 #define HCLGE_FD_AD_NXT_KEY_S 21 737 737 #define HCLGE_FD_AD_NXT_KEY_M GENMASK(25, 21)
+1 -1
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
··· 5690 5690 HCLGE_FD_AD_COUNTER_NUM_S, action->counter_id); 5691 5691 hnae3_set_bit(ad_data, HCLGE_FD_AD_NXT_STEP_B, action->use_next_stage); 5692 5692 hnae3_set_field(ad_data, HCLGE_FD_AD_NXT_KEY_M, HCLGE_FD_AD_NXT_KEY_S, 5693 - action->counter_id); 5693 + action->next_input_key); 5694 5694 5695 5695 req->ad_data = cpu_to_le64(ad_data); 5696 5696 ret = hclge_cmd_send(&hdev->hw, &desc, 1);