Commit 3b174d94 authored by Vipul Pandya's avatar Vipul Pandya Committed by David S. Miller

RDMA/cxgb4: Bump tcam_full stat and WR reply timeout

Always bump the tcam_full stat. Also, bump wr reply timeout to 30 seconds.
Signed-off-by: default avatarVipul Pandya <vipul@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0e5eca79
...@@ -1693,9 +1693,9 @@ static int act_open_rpl(struct c4iw_dev *dev, struct sk_buff *skb) ...@@ -1693,9 +1693,9 @@ static int act_open_rpl(struct c4iw_dev *dev, struct sk_buff *skb)
case CPL_ERR_CONN_TIMEDOUT: case CPL_ERR_CONN_TIMEDOUT:
break; break;
case CPL_ERR_TCAM_FULL: case CPL_ERR_TCAM_FULL:
dev->rdev.stats.tcam_full++;
if (dev->rdev.lldi.enable_fw_ofld_conn) { if (dev->rdev.lldi.enable_fw_ofld_conn) {
mutex_lock(&dev->rdev.stats.lock); mutex_lock(&dev->rdev.stats.lock);
dev->rdev.stats.tcam_full++;
mutex_unlock(&dev->rdev.stats.lock); mutex_unlock(&dev->rdev.stats.lock);
send_fw_act_open_req(ep, send_fw_act_open_req(ep,
GET_TID_TID(GET_AOPEN_ATID( GET_TID_TID(GET_AOPEN_ATID(
......
...@@ -162,7 +162,7 @@ static inline int c4iw_num_stags(struct c4iw_rdev *rdev) ...@@ -162,7 +162,7 @@ static inline int c4iw_num_stags(struct c4iw_rdev *rdev)
return min((int)T4_MAX_NUM_STAG, (int)(rdev->lldi.vr->stag.size >> 5)); return min((int)T4_MAX_NUM_STAG, (int)(rdev->lldi.vr->stag.size >> 5));
} }
#define C4IW_WR_TO (10*HZ) #define C4IW_WR_TO (30*HZ)
struct c4iw_wr_wait { struct c4iw_wr_wait {
struct completion completion; struct completion completion;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment