net: hns3: Add support for PFC setting in TM module
authorYunsheng Lin <linyunsheng@huawei.com>
Wed, 27 Sep 2017 01:45:25 +0000 (09:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Sep 2017 17:35:11 +0000 (10:35 -0700)
commit9dc2145d910e94d1987fd165ac7643777fcf17c4
tree54d11eba975cabfb3f19e07df421a3e2f44fd030
parentacf61ecd44feae2a78c13d0d7cb8e386741c5cf0
net: hns3: Add support for PFC setting in TM module

This patch add a pfc_pause_en cmd, and use it to configure
PFC option according to fc_mode in hdev->tm_info.

Signed-off-by: Yunsheng Lin <linyunsheng@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