OSDN Git Service

net: hns3: add support to utilize the firmware calculated shaping parameters
authorYonglong Liu <liuyonglong@huawei.com>
Fri, 20 Nov 2020 09:16:22 +0000 (17:16 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 Nov 2020 22:33:46 +0000 (14:33 -0800)
commite364ad303fe3e96ff30fb05c031774ecbbce4af1
treee70e5fed25fd8e136a10cfb45aa2ea325908671b
parent3a6863e4e8ee212c7f86594299d9ff0d6a15ecbc
net: hns3: add support to utilize the firmware calculated shaping parameters

Since the calculation of the driver is fixed, if the number of
queue or clock changed, the calculated result may be inaccurate.

So for compatible and maintainable, add a new flag to tell the
firmware to calculate the shaping parameters with the specified
rate.

Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h