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)
commitff7e4d0df83b8029ee42d3dea5d1939b1ff5446f
tree2c8b5f9d803bd912421bd06c31948300cc281866
parent1329702899db22611c8cfdf63e6d38b71b803fa1
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