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)
commitc5795c5308af81568d1573598716091120c85a38
tree339c6e81acd81f3dd57be00d43a7fe3a870c36c7
parent68ece54efd417d415462adbaa2700cba50de3ff6
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: 848440544b41f ("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