]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 18:41:03 +0000 (14:41 -0400)
commit8b6368749f3585a1c638c956f63de20261553cbe
treeb0e8d1ab023ad532a575cd66869765a204c45cbb
parente57c1f76f2759a6b7ae8d665b4a758ef2e900e65
net: hns3: Fixes the back pressure setting when sriov is enabled

BugLink: https://bugs.launchpad.net/bugs/1768670
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: 848440544b41 ("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>
(cherry picked from commit 67bf2541f4b9a091e928d75eca544bca4c5db142 linux-next)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h