]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: hns3: fix the HCLGE_FD_AD_NXT_KEY error setting issue
authorJijie Shao <shaojijie@huawei.com>
Mon, 19 Jan 2026 13:28:40 +0000 (21:28 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 Jan 2026 02:31:40 +0000 (18:31 -0800)
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>
Link: https://patch.msgid.link/20260119132840.410513-3-shaojijie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index c589baea7c7754e3df84ab13ed7bcaab570fee6c..b8e2aa19f9e61458969d9d256e81b814c1d6558f 100644 (file)
@@ -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);