aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2007-04-12 08:56:34 -0400
committerRoland Dreier <rolandd@cisco.com>2007-04-12 13:37:11 -0400
commit1ca19770c5ba90d041ba4d06976c77048d330cc8 (patch)
tree6c2cf812269bd9b00c20e16a71d16c07abf6c103 /drivers
parent80584ff3b99c36ead7e130e453b3a48b18072d18 (diff)
RDMA/cxgb3: Add set_tcb_rpl_handler
As of commit 6cdbd77e ("cxgb3 - missing CPL hanler and register setting."), the cxgb3 ethernet NIC driver no longer handles SET_TCB replies, so we need to do it in the iWARP driver. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Acked-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/cxgb3/iwch_cm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c
index d0ed1d35ca3e..2d2de9b8b729 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_cm.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_cm.c
@@ -2026,6 +2026,17 @@ static int sched(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
2026 return 0; 2026 return 0;
2027} 2027}
2028 2028
2029static int set_tcb_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
2030{
2031 struct cpl_set_tcb_rpl *rpl = cplhdr(skb);
2032
2033 if (rpl->status != CPL_ERR_NONE) {
2034 printk(KERN_ERR MOD "Unexpected SET_TCB_RPL status %u "
2035 "for tid %u\n", rpl->status, GET_TID(rpl));
2036 }
2037 return CPL_RET_BUF_DONE;
2038}
2039
2029int __init iwch_cm_init(void) 2040int __init iwch_cm_init(void)
2030{ 2041{
2031 skb_queue_head_init(&rxq); 2042 skb_queue_head_init(&rxq);
@@ -2053,6 +2064,7 @@ int __init iwch_cm_init(void)
2053 t3c_handlers[CPL_ABORT_REQ_RSS] = sched; 2064 t3c_handlers[CPL_ABORT_REQ_RSS] = sched;
2054 t3c_handlers[CPL_RDMA_TERMINATE] = sched; 2065 t3c_handlers[CPL_RDMA_TERMINATE] = sched;
2055 t3c_handlers[CPL_RDMA_EC_STATUS] = sched; 2066 t3c_handlers[CPL_RDMA_EC_STATUS] = sched;
2067 t3c_handlers[CPL_SET_TCB_RPL] = set_tcb_rpl;
2056 2068
2057 /* 2069 /*
2058 * These are the real handlers that are called from a 2070 * These are the real handlers that are called from a