]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9d8a11fa384cc8d7fbd783ce7137904d71c52e2
treee70e5fed25fd8e136a10cfb45aa2ea325908671b
parentc5116f9147e1d9426eb5cf1be29ac8d49b615e63
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