net: hns3: Support for dynamically assigning tx buffer to TC
authorYunsheng Lin <linyunsheng@huawei.com>
Wed, 27 Sep 2017 01:45:23 +0000 (09:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Sep 2017 17:35:11 +0000 (10:35 -0700)
commit9ffe79a9c2eec0f30687c2fd8b452bda5c8287b0
treee72c500633a5bb9f6acea1e13b875340a978c10f
parent6ade97da601f8af793f6c7a861af754d0f0b6767
net: hns3: Support for dynamically assigning tx buffer to TC

This patch add support of dynamically assigning tx buffer to
TC when the TC is enabled.
It will save buffer for rx direction to avoid packet loss.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c