]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Fix for pri to tc mapping in TM
authorYunsheng Lin <linyunsheng@huawei.com>
Wed, 20 Sep 2017 10:52:58 +0000 (18:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Sep 2017 23:15:40 +0000 (16:15 -0700)
commita53c58f1607d5775c589e60a0c2d9b05942d16b1
tree339c6e81acd81f3dd57be00d43a7fe3a870c36c7
parent1dea1a6650cc3550bed7f6351641389133954bbd
net: hns3: Fix for pri to tc mapping in TM

Current mapping between pri and tc is one to one,
so user can't map multi priorities to the same tc.
This patch changes the mapping to many to one.

Fixes: 4561179872dda ("net: hns3: Add support of TX Scheduler & Shaper to HNS3 driver")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c