]> git.baikalelectronics.ru Git - kernel.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)
commit48b04b783cb1e3ba4632015c19822f23495c2b4d
tree71dd63fb77faac4783b5fea38a3113a39b085488
parentdd17d1d4febf0071c502945eed042069ad9b8a9b
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: ed1bec1cc259 ("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