]> 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)
commit1dbfb654541074a389a01ba3a52ad1221e15c46a
tree861a2cfde48002d574b9988949deead227a8d39c
parent172e9a272241d530ca39835094a960c9ef8027d2
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: 4561179872dd ("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