]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns3: Set tx ring' tc info when netdev is up
authorYunsheng Lin <linyunsheng@huawei.com>
Wed, 7 Nov 2018 01:25:38 +0000 (18:25 -0700)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 9 Nov 2018 18:59:42 +0000 (16:59 -0200)
commitfe46c8593f878954001b24e006b9e22fee069d76
treea73110fb67ead558fee5cd96c91fef5fd5e509e5
parent1f1d2cf6980cb743e1027a9c8199c79886385fd0
net: hns3: Set tx ring' tc info when netdev is up

BugLink: https://bugs.launchpad.net/bugs/1802023
The HNS3_RING_TX_RING_TC_REG register is used to map tx ring to
specific tc, the tx queue to tc mapping is needed by the hardware
to do the correct tx schedule.

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>
(backported from commit 1c77215480bcfa0852575180f997bd156f2aef17)
[ dannf: Trivial offset fix in hns3_enet.h ]
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h