]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: hns3: fix get wrong value of function hclge_get_dscp_prio()
authorGuangbin Huang <huangguangbin2@huawei.com>
Tue, 1 Nov 2022 07:48:38 +0000 (15:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Nov 2022 10:06:52 +0000 (10:06 +0000)
commitcfdcb075048c1e886c45a9c9e681ed222f74ecb9
tree71dd63fb77faac4783b5fea38a3113a39b085488
parent4581dd480c9e42a1ad21dd8b9c110abe41878ce5
net: hns3: fix get wrong value of function hclge_get_dscp_prio()

As the argument struct hnae3_handle *h of function hclge_get_dscp_prio()
can be other client registered in hnae3 layer, we need to transform it
into hnae3_handle of local nic client to get right dscp settings for
other clients.

Fixes: dfea275e06c2 ("net: hns3: optimize converting dscp to priority process of hns3_nic_select_queue()")
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c