net: hns3: add new function hclge_tm_schd_mode_tc_base_cfg()
authorGuangbin Huang <huangguangbin2@huawei.com>
Mon, 29 Nov 2021 14:00:23 +0000 (22:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Nov 2021 14:26:17 +0000 (14:26 +0000)
commit7ca561be11d0336c4329604a82e4d7bfb149d27d
treeddfae205285b57ff29d723ed77fdf240d4cc4a93
parente46da6a3d4d390adaad4eb1471307156933954cc
net: hns3: add new function hclge_tm_schd_mode_tc_base_cfg()

This patch encapsulates the process code of tc based schedule mode of
function hclge_tm_lvl34_schd_mode_cfg() into a new function
hclge_tm_schd_mode_tc_base_cfg(). It make code more concise and the new
process code can be reused.

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c