* [ofa-general] [PATCH 2.6.21] iw_cxgb3 - Add set_tcb_rpl_handler. @ 2007-04-12 12:56 Steve Wise 2007-04-12 14:44 ` [ofa-general] " Divy Le Ray 0 siblings, 1 reply; 6+ messages in thread From: Steve Wise @ 2007-04-12 12:56 UTC (permalink / raw) To: Roland Dreier Cc: Netdev, Jeff Garzik, Divy Le Ray, linux-kernel, OpenFabrics General Hey Roland, This patch is needed for iw_cxgb3 to handle a change in the cxgb3 driver posted by Divy that Jeff recently applied. If the cxgb3 change is destined for 2.6.21, then this change to iw_cxgb3 also needs to go in (otherwise we get an error log entry for every rdma connection). It was an oversight that this patch didn't really get included in Divy's series since the two go together. See http://marc.info/?l=linux-netdev&m=117617444422260&w=2 Thanks, Steve. --- Add set_tcb_rpl_handler. The Ethernet Driver no longer handles SET_TCB replies. Signed-off-by: Steve Wise <swise@opengridcomputing.com> --- drivers/infiniband/hw/cxgb3/iwch_cm.c | 12 ++++++++++++ 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 d0ed1d3..2d2de9b 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, st return 0; } +static int set_tcb_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) +{ + struct cpl_set_tcb_rpl *rpl = cplhdr(skb); + + if (rpl->status != CPL_ERR_NONE) { + printk(KERN_ERR MOD "Unexpected SET_TCB_RPL status %u " + "for tid %u\n", rpl->status, GET_TID(rpl)); + } + return CPL_RET_BUF_DONE; +} + int __init iwch_cm_init(void) { skb_queue_head_init(&rxq); @@ -2053,6 +2064,7 @@ int __init iwch_cm_init(void) t3c_handlers[CPL_ABORT_REQ_RSS] = sched; t3c_handlers[CPL_RDMA_TERMINATE] = sched; t3c_handlers[CPL_RDMA_EC_STATUS] = sched; + t3c_handlers[CPL_SET_TCB_RPL] = set_tcb_rpl; /* * These are the real handlers that are called from a ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [ofa-general] Re: [PATCH 2.6.21] iw_cxgb3 - Add set_tcb_rpl_handler. 2007-04-12 12:56 [ofa-general] [PATCH 2.6.21] iw_cxgb3 - Add set_tcb_rpl_handler Steve Wise @ 2007-04-12 14:44 ` Divy Le Ray 2007-04-12 15:23 ` Roland Dreier 0 siblings, 1 reply; 6+ messages in thread From: Divy Le Ray @ 2007-04-12 14:44 UTC (permalink / raw) To: Steve Wise Cc: Netdev, Roland Dreier, Jeff Garzik, linux-kernel, OpenFabrics General Steve Wise wrote: > Hey Roland, > > This patch is needed for iw_cxgb3 to handle a change in the cxgb3 driver > posted by Divy that Jeff recently applied. If the cxgb3 change is > destined for 2.6.21, then this change to iw_cxgb3 also needs to go in > (otherwise we get an error log entry for every rdma connection). > > It was an oversight that this patch didn't really get included in Divy's > series since the two go together. > > See http://marc.info/?l=linux-netdev&m=117617444422260&w=2 > > > Thanks, > > Steve. > > > --- > > > Add set_tcb_rpl_handler. > > The Ethernet Driver no longer handles SET_TCB replies. > > Signed-off-by: Steve Wise <swise@opengridcomputing.com> > Acked-by: Divy Le Ray <divy@chelsio.com> ^ permalink raw reply [flat|nested] 6+ messages in thread
* [ofa-general] Re: [PATCH 2.6.21] iw_cxgb3 - Add set_tcb_rpl_handler. 2007-04-12 14:44 ` [ofa-general] " Divy Le Ray @ 2007-04-12 15:23 ` Roland Dreier 2007-04-12 15:42 ` Steve Wise 0 siblings, 1 reply; 6+ messages in thread From: Roland Dreier @ 2007-04-12 15:23 UTC (permalink / raw) To: Divy Le Ray; +Cc: Netdev, Jeff Garzik, linux-kernel, OpenFabrics General So is the cxgb3 net driver change in question already in Linus's tree? What is the exact patch that this change goes with? ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2.6.21] iw_cxgb3 - Add set_tcb_rpl_handler. 2007-04-12 15:23 ` Roland Dreier @ 2007-04-12 15:42 ` Steve Wise 2007-04-12 16:07 ` [ofa-general] " Roland Dreier 0 siblings, 1 reply; 6+ messages in thread From: Steve Wise @ 2007-04-12 15:42 UTC (permalink / raw) To: Roland Dreier Cc: Divy Le Ray, linux-kernel, Netdev, OpenFabrics General, Jeff Garzik On Thu, 2007-04-12 at 08:23 -0700, Roland Dreier wrote: > So is the cxgb3 net driver change in question already in Linus's tree? > What is the exact patch that this change goes with? The patch is the 3rd of 3: http://marc.info/?l=linux-kernel&m=117617444622279&w=2 Jeff applied it into his upstream tree here: http://marc.info/?l=linux-netdev&m=117630664627997&w=2 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [ofa-general] Re: [PATCH 2.6.21] iw_cxgb3 - Add set_tcb_rpl_handler. 2007-04-12 15:42 ` Steve Wise @ 2007-04-12 16:07 ` Roland Dreier 2007-04-12 17:30 ` Roland Dreier 0 siblings, 1 reply; 6+ messages in thread From: Roland Dreier @ 2007-04-12 16:07 UTC (permalink / raw) To: Steve Wise Cc: Netdev, Jeff Garzik, OpenFabrics General, linux-kernel, Divy Le Ray > The patch is the 3rd of 3: > > http://marc.info/?l=linux-kernel&m=117617444622279&w=2 > > Jeff applied it into his upstream tree here: > > http://marc.info/?l=linux-netdev&m=117630664627997&w=2 OK, so it's not in Linus's tree yet. Jeff, how do you want to handle this? (That last patch breaks drivers/infiniband/hw/cxgb3, and Steve posted a fix to handle it) The cleanest thing would be for you to roll up Steve's fix into the patch you merged, so that Linus's tree is never in the state where it has half the change merged. But I don't know if that fits your workflow. Thanks... ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ofa-general] Re: [PATCH 2.6.21] iw_cxgb3 - Add set_tcb_rpl_handler. 2007-04-12 16:07 ` [ofa-general] " Roland Dreier @ 2007-04-12 17:30 ` Roland Dreier 0 siblings, 0 replies; 6+ messages in thread From: Roland Dreier @ 2007-04-12 17:30 UTC (permalink / raw) To: Steve Wise Cc: Netdev, Divy Le Ray, OpenFabrics General, Jeff Garzik, linux-kernel Never mind, I see that "cxgb3 - missing CPL hanler and register setting." has appeared in Linus's tree. Steve, I'll ask Linus to pull this fix today. Jeff, never mind my question since it's too late now. - R. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-04-12 17:30 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-04-12 12:56 [ofa-general] [PATCH 2.6.21] iw_cxgb3 - Add set_tcb_rpl_handler Steve Wise 2007-04-12 14:44 ` [ofa-general] " Divy Le Ray 2007-04-12 15:23 ` Roland Dreier 2007-04-12 15:42 ` Steve Wise 2007-04-12 16:07 ` [ofa-general] " Roland Dreier 2007-04-12 17:30 ` Roland Dreier
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).