aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h
diff options
context:
space:
mode:
authorGravatar Zhao Chen <zhaochen6@huawei.com> 2018-10-18 15:02:51 +0000
committerGravatar David S. Miller <davem@davemloft.net> 2018-10-18 16:44:37 -0700
commitcc18a7543d2f63a2c93fc61cfa7fd8be5464f75e (patch)
treef44fdb43030510881d2e3074e67579041c84f70a /drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h
parentcxgb4: fix the error path of cxgb4_uld_register() (diff)
downloadlinux-cc18a7543d2f63a2c93fc61cfa7fd8be5464f75e.tar.gz
linux-cc18a7543d2f63a2c93fc61cfa7fd8be5464f75e.tar.bz2
linux-cc18a7543d2f63a2c93fc61cfa7fd8be5464f75e.zip
net-next/hinic: add checksum offload and TSO support
This patch adds checksum offload and TSO support for the HiNIC driver. Perfomance test (Iperf) shows more than 100% improvement in TCP streams. Signed-off-by: Zhao Chen <zhaochen6@huawei.com> Signed-off-by: Xue Chaojing <xuechaojing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h')
-rw-r--r--drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h b/drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h
index 9c030a0f035e..9b66545ba563 100644
--- a/drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h
+++ b/drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h
@@ -104,6 +104,8 @@ void hinic_wq_free(struct hinic_wqs *wqs, struct hinic_wq *wq);
struct hinic_hw_wqe *hinic_get_wqe(struct hinic_wq *wq, unsigned int wqe_size,
u16 *prod_idx);
+void hinic_return_wqe(struct hinic_wq *wq, unsigned int wqe_size);
+
void hinic_put_wqe(struct hinic_wq *wq, unsigned int wqe_size);
struct hinic_hw_wqe *hinic_read_wqe(struct hinic_wq *wq, unsigned int wqe_size,