diff options
| author | Hariprasad S <hariprasad@chelsio.com> | 2015-04-21 16:14:58 -0400 |
|---|---|---|
| committer | Doug Ledford <dledford@redhat.com> | 2015-05-05 09:18:01 -0400 |
| commit | 0b7410471d59ce2ea30453e68c03bdb941d5951e (patch) | |
| tree | 42a57cb7a5d7fa6580b697a1dc6afc775e9be459 /drivers/infiniband/hw | |
| parent | 285214409a9e5fceba2215461b4682b6069d8e77 (diff) | |
iw_cxgb4: Cleanup register defines/MACROS
Cleanup macros and register defines for consistency
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw')
| -rw-r--r-- | drivers/infiniband/hw/cxgb4/cm.c | 4 | ||||
| -rw-r--r-- | drivers/infiniband/hw/cxgb4/t4fw_ri_api.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 57176ddd4c50..0493cca3ec15 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c | |||
| @@ -675,7 +675,7 @@ static int send_connect(struct c4iw_ep *ep) | |||
| 675 | if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) { | 675 | if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) { |
| 676 | opt2 |= T5_OPT_2_VALID_F; | 676 | opt2 |= T5_OPT_2_VALID_F; |
| 677 | opt2 |= CONG_CNTRL_V(CONG_ALG_TAHOE); | 677 | opt2 |= CONG_CNTRL_V(CONG_ALG_TAHOE); |
| 678 | opt2 |= CONG_CNTRL_VALID; /* OPT_2_ISS for T5 */ | 678 | opt2 |= T5_ISS_F; |
| 679 | } | 679 | } |
| 680 | t4_set_arp_err_handler(skb, ep, act_open_req_arp_failure); | 680 | t4_set_arp_err_handler(skb, ep, act_open_req_arp_failure); |
| 681 | 681 | ||
| @@ -2214,7 +2214,7 @@ static void accept_cr(struct c4iw_ep *ep, struct sk_buff *skb, | |||
| 2214 | u32 isn = (prandom_u32() & ~7UL) - 1; | 2214 | u32 isn = (prandom_u32() & ~7UL) - 1; |
| 2215 | opt2 |= T5_OPT_2_VALID_F; | 2215 | opt2 |= T5_OPT_2_VALID_F; |
| 2216 | opt2 |= CONG_CNTRL_V(CONG_ALG_TAHOE); | 2216 | opt2 |= CONG_CNTRL_V(CONG_ALG_TAHOE); |
| 2217 | opt2 |= CONG_CNTRL_VALID; /* OPT_2_ISS for T5 */ | 2217 | opt2 |= T5_ISS_F; |
| 2218 | rpl5 = (void *)rpl; | 2218 | rpl5 = (void *)rpl; |
| 2219 | memset(&rpl5->iss, 0, roundup(sizeof(*rpl5)-sizeof(*rpl), 16)); | 2219 | memset(&rpl5->iss, 0, roundup(sizeof(*rpl5)-sizeof(*rpl), 16)); |
| 2220 | if (peer2peer) | 2220 | if (peer2peer) |
diff --git a/drivers/infiniband/hw/cxgb4/t4fw_ri_api.h b/drivers/infiniband/hw/cxgb4/t4fw_ri_api.h index 5e53327fc647..343e8daf2270 100644 --- a/drivers/infiniband/hw/cxgb4/t4fw_ri_api.h +++ b/drivers/infiniband/hw/cxgb4/t4fw_ri_api.h | |||
| @@ -848,6 +848,8 @@ enum { /* TCP congestion control algorithms */ | |||
| 848 | #define CONG_CNTRL_V(x) ((x) << CONG_CNTRL_S) | 848 | #define CONG_CNTRL_V(x) ((x) << CONG_CNTRL_S) |
| 849 | #define CONG_CNTRL_G(x) (((x) >> CONG_CNTRL_S) & CONG_CNTRL_M) | 849 | #define CONG_CNTRL_G(x) (((x) >> CONG_CNTRL_S) & CONG_CNTRL_M) |
| 850 | 850 | ||
| 851 | #define CONG_CNTRL_VALID (1 << 18) | 851 | #define T5_ISS_S 18 |
| 852 | #define T5_ISS_V(x) ((x) << T5_ISS_S) | ||
| 853 | #define T5_ISS_F T5_ISS_V(1U) | ||
| 852 | 854 | ||
| 853 | #endif /* _T4FW_RI_API_H_ */ | 855 | #endif /* _T4FW_RI_API_H_ */ |
