aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
diff options
context:
space:
mode:
authorPotnuri Bharat Teja <bharat@chelsio.com>2018-08-03 18:26:47 +0530
committerJason Gunthorpe <jgg@mellanox.com>2018-08-08 09:54:55 -0600
commit2e51e45cf613491a2bd9d757f04e36d8617be5ac (patch)
tree1fee1faaf4de1c7444a80ae123fdece02c8b0dc7 /drivers/infiniband/hw/cxgb4/iw_cxgb4.h
parentRDMA/mlx5: Fix shift overflow in mlx5_ib_create_wq (diff)
downloadlinux-dev-2e51e45cf613491a2bd9d757f04e36d8617be5ac.tar.xz
linux-dev-2e51e45cf613491a2bd9d757f04e36d8617be5ac.zip
iw_cxgb4: pass window scale in flowc work request
This will allow FW to not send more data to TP (which would then need to be buffered). Pass the negotiated TCP window scale to FW in the FLOWC WR. Also refactor send_flowc() a bit to clean it up. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/cxgb4/iw_cxgb4.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
index afa86a3c5cb4..f0fceadd0d12 100644
--- a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
+++ b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
@@ -910,7 +910,10 @@ enum conn_pre_alloc_buffers {
CN_MAX_CON_BUF
};
-#define FLOWC_LEN 80
+enum {
+ FLOWC_LEN = offsetof(struct fw_flowc_wr, mnemval[FW_FLOWC_MNEM_MAX])
+};
+
union cpl_wr_size {
struct cpl_abort_req abrt_req;
struct cpl_abort_rpl abrt_rpl;
@@ -977,6 +980,7 @@ struct c4iw_ep {
unsigned int retry_count;
int snd_win;
int rcv_win;
+ u32 snd_wscale;
struct c4iw_ep_stats stats;
};