diff options
author | Steve Wise <swise@opengridcomputing.com> | 2014-04-24 14:31:59 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-04-28 17:29:41 -0700 |
commit | 92e5011ab0e073ab8fbb726c11529021e5e63973 (patch) | |
tree | 61fb0f01aacc74a5445b35092edc6047481224bf /drivers/infiniband/hw/cxgb4/t4fw_ri_api.h | |
parent | cc18b939e1efbc2a47f62dbd2b1df53d974df6b7 (diff) | |
download | lwn-92e5011ab0e073ab8fbb726c11529021e5e63973.tar.gz lwn-92e5011ab0e073ab8fbb726c11529021e5e63973.zip |
RDMA/cxgb4: Force T5 connections to use TAHOE congestion control
This is required to work around a T5 HW issue.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/t4fw_ri_api.h')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/t4fw_ri_api.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/t4fw_ri_api.h b/drivers/infiniband/hw/cxgb4/t4fw_ri_api.h index dc193c292671..6121ca08fe58 100644 --- a/drivers/infiniband/hw/cxgb4/t4fw_ri_api.h +++ b/drivers/infiniband/hw/cxgb4/t4fw_ri_api.h @@ -836,4 +836,18 @@ struct ulptx_idata { #define V_RX_DACK_CHANGE(x) ((x) << S_RX_DACK_CHANGE) #define F_RX_DACK_CHANGE V_RX_DACK_CHANGE(1U) +enum { /* TCP congestion control algorithms */ + CONG_ALG_RENO, + CONG_ALG_TAHOE, + CONG_ALG_NEWRENO, + CONG_ALG_HIGHSPEED +}; + +#define S_CONG_CNTRL 14 +#define M_CONG_CNTRL 0x3 +#define V_CONG_CNTRL(x) ((x) << S_CONG_CNTRL) +#define G_CONG_CNTRL(x) (((x) >> S_CONG_CNTRL) & M_CONG_CNTRL) + +#define T5_OPT_2_VALID (1 << 31) + #endif /* _T4FW_RI_API_H_ */ |