]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add ETS TC weight setting in SSU module
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 22 Jan 2019 23:39:36 +0000 (07:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2019 19:13:02 +0000 (11:13 -0800)
commite3b09cbacac41173c80b614df4e63acb3891db96
treece58a35fb207a9cb0e37a1f1fd96f100601a9f49
parent852aeab3c2b65d49e36718f24348fd81bfeff642
net: hns3: add ETS TC weight setting in SSU module

This patch sets the TC weight in SSU module according to
info in tm_info.

Also, zero weight of TC weight in SSU ETS module means enabling
strict priority, so do not allow zero weight when in ETS mode.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c