summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
diff options
context:
space:
mode:
authorYunsheng Lin2017-09-27 03:45:23 +0200
committerDavid S. Miller2017-09-28 19:35:11 +0200
commit9ffe79a9c2eec0f30687c2fd8b452bda5c8287b0 (patch)
treee72c500633a5bb9f6acea1e13b875340a978c10f /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
parentarp: make arp_hdr_len() return unsigned int (diff)
downloadkernel-qcow2-linux-9ffe79a9c2eec0f30687c2fd8b452bda5c8287b0.tar.gz
kernel-qcow2-linux-9ffe79a9c2eec0f30687c2fd8b452bda5c8287b0.tar.xz
kernel-qcow2-linux-9ffe79a9c2eec0f30687c2fd8b452bda5c8287b0.zip
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>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
index 758cf3948131..a81c6cb93ed5 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
@@ -311,6 +311,7 @@ struct hclge_tc_thrd {
struct hclge_priv_buf {
struct hclge_waterline wl; /* Waterline for low and high*/
u32 buf_size; /* TC private buffer size */
+ u32 tx_buf_size;
u32 enable; /* Enable TC private buffer or not */
};