OSDN Git Service

net: hns3: Add tc-based TM support for sriov enabled port
authorYunsheng Lin <linyunsheng@huawei.com>
Wed, 27 Sep 2017 01:45:27 +0000 (09:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Sep 2017 17:35:11 +0000 (10:35 -0700)
commitcc9bb43ab394f14096a55ee6101af0e804c05f0f
tree3dbc1c50024326f13cb60def6cb903b84128d5d9
parent0a5677d39ef12739c9c10ef6e8e5f4b0805bfe71
net: hns3: Add tc-based TM support for sriov enabled port

When sriov is enabled and TM is in tc-based mode, vf's TM
parameters is not set in TM initialization process.
This patch add the tc_based TM support for sriov enabled
using the information in vport struct.

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