]> 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)
commit68de558799ac9ba654c1dee386b960ff298ff2f7
tree339c6e81acd81f3dd57be00d43a7fe3a870c36c7
parent4d7cc174cfbc2247e303f9c50af057b46748eb2b
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: c701070a20f55 ("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