]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add a structure for IR shaper's parameter in hclge_shaper_para_calc()
authorHuazhong Tan <tanhuazhong@huawei.com>
Sun, 27 Sep 2020 07:12:48 +0000 (15:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Sep 2020 20:25:22 +0000 (13:25 -0700)
commita5f4ea92ff4db50a5521bda268bf31cfee35e968
tree2c8b5f9d803bd912421bd06c31948300cc281866
parent125573005cb626e0f50ca7cbe5bfa35ac227405e
net: hns3: add a structure for IR shaper's parameter in hclge_shaper_para_calc()

As function hclge_shaper_para_calc() has too many arguments to add
more, so encapsulate its three arguments ir_b, ir_u, ir_s into a
structure.

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
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h