]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Fixes the back pressure setting when sriov is enabled
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 15 May 2018 18:20:11 +0000 (19:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 May 2018 15:33:08 +0000 (11:33 -0400)
commitd738e9fa7ef0ecc68b62038109851a7f072aad32
tree861a2cfde48002d574b9988949deead227a8d39c
parente78fb2170a2a3a597543b8d7bdb0fb1de571a5a8
net: hns3: Fixes the back pressure setting when sriov is enabled

When sriov is enabled, the Qset and tc mapping is not longer one
to one relation.

This patch fixes it by mapping all pf and vf's Qset to tc.

Fixes: c701070a20f5 ("net: hns3: Add support of TX Scheduler & Shaper to HNS3 driver")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h