From patchwork Mon Apr 26 16:22:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland Dreier X-Patchwork-Id: 95089 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3QGMNFw031367 for ; Mon, 26 Apr 2010 16:22:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752213Ab0DZQWW (ORCPT ); Mon, 26 Apr 2010 12:22:22 -0400 Received: from sj-iport-5.cisco.com ([171.68.10.87]:53367 "EHLO sj-iport-5.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751914Ab0DZQWV (ORCPT ); Mon, 26 Apr 2010 12:22:21 -0400 Authentication-Results: sj-iport-5.cisco.com; dkim=neutral (message not signed) header.i=none X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAMNa1UurRN+J/2dsb2JhbACcPHGoVpl0hQsEgzk X-IronPort-AV: E=Sophos;i="4.52,274,1270425600"; d="scan'208";a="188498254" Received: from sj-core-3.cisco.com ([171.68.223.137]) by sj-iport-5.cisco.com with ESMTP; 26 Apr 2010 16:22:21 +0000 Received: from roland-alpha.cisco.com (roland-alpha.cisco.com [10.33.42.9]) by sj-core-3.cisco.com (8.13.8/8.14.3) with ESMTP id o3QGMLlE012787; Mon, 26 Apr 2010 16:22:21 GMT Received: by roland-alpha.cisco.com (Postfix, from userid 33217) id AF2341FE47; Mon, 26 Apr 2010 09:22:17 -0700 (PDT) From: Roland Dreier To: Steve Wise Cc: linux-rdma@vger.kernel.org Subject: Re: [PATCH v3 05/10] iw_cxgb4: Add connection management functions. References: <20100416182924.22495.59421.stgit@build.ogc.int> <20100416182951.22495.60351.stgit@build.ogc.int> <4BD5A98C.8030700@opengridcomputing.com> X-Message-Flag: Warning: May contain useful information Date: Mon, 26 Apr 2010 09:22:17 -0700 In-Reply-To: <4BD5A98C.8030700@opengridcomputing.com> (Steve Wise's message of "Mon, 26 Apr 2010 09:56:12 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 26 Apr 2010 16:22:23 +0000 (UTC) diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index e1c1ee0..b602438 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c @@ -2260,24 +2260,6 @@ int c4iw_ep_disconnect(struct c4iw_ep *ep, int abrupt, gfp_t gfp) return ret; } -int c4iw_ep_redirect(void *ctx, struct dst_entry *old, struct dst_entry *new, - struct l2t_entry *l2t) -{ - struct c4iw_ep *ep = ctx; - - if (ep->dst != old) - return 0; - - PDBG("%s ep %p redirect to dst %p l2t %p\n", __func__, ep, new, - l2t); - dst_hold(new); - cxgb4_l2t_release(ep->l2t); - ep->l2t = l2t; - dst_release(old); - ep->dst = new; - return 1; -} - /* * All the CM events are handled on a work queue to have a safe context. */