]> 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)
commit8797b6a9bbd25a032cdb111574346fac5ab4731f
treee70e5fed25fd8e136a10cfb45aa2ea325908671b
parent89b3e5733733a54c3c824759bcd66d852897a132
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