net: hns3: unify the pause params setup function
authorFuyun Liang <liangfuyun1@huawei.com>
Sat, 10 Mar 2018 03:29:25 +0000 (11:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2018 02:53:31 +0000 (22:53 -0400)
commite98d7183f609ba48cfe5c5132b99f4c6ccab31c6
tree2acbb8329522356f4dd7f2a5254541b8065684cf
parent20e4bf982b72e5716233542d73b1e516485b71fb
net: hns3: unify the pause params setup function

Since the firmware cmd to setup mac pause params is the same as the
firmware cmd to pfc pause params, this patch unifies the pause params
setup function.

Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h