From patchwork Fri Dec 20 21:41:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Upinder Malhi (umalhi)" X-Patchwork-Id: 3392011 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BF3FD9F344 for ; Fri, 20 Dec 2013 21:41:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BFF412044C for ; Fri, 20 Dec 2013 21:41:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9FEF120480 for ; Fri, 20 Dec 2013 21:41:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753519Ab3LTVlZ (ORCPT ); Fri, 20 Dec 2013 16:41:25 -0500 Received: from rcdn-iport-7.cisco.com ([173.37.86.78]:19013 "EHLO rcdn-iport-7.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752852Ab3LTVlZ convert rfc822-to-8bit (ORCPT ); Fri, 20 Dec 2013 16:41:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1586; q=dns/txt; s=iport; t=1387575685; x=1388785285; h=from:to:subject:date:message-id:content-id: content-transfer-encoding:mime-version; bh=WS+GtbXCqrdbrrA470vClPln37e/yNIpmkkQjUfEtH8=; b=VN49Y2SCtP5u4qFTRCID6AA3FRpFwqGGz36Up/nU7xqfSF4/CjY6pFcm EevLxXo9gV0zeGspswx0kFTQt+ToZd6EMrDr0qtHs87b6jYq3uVXbV5a7 6hyI3FgUItI9RZrsPV5hQbJUIdT0OoIX/u+wad1achWEvrax+4tj+a4yb I=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgIFAIa4tFKtJXG+/2dsb2JhbABZgws4VblEgR8WdIIoBAECN1EBPjgKJwQBEogEDcorF44uZoMogRMElUeCT4pLh0mBbYE+gWhC X-IronPort-AV: E=Sophos;i="4.95,523,1384300800"; d="scan'208";a="292991541" Received: from rcdn-core2-3.cisco.com ([173.37.113.190]) by rcdn-iport-7.cisco.com with ESMTP; 20 Dec 2013 21:41:24 +0000 Received: from xhc-rcd-x08.cisco.com (xhc-rcd-x08.cisco.com [173.37.183.82]) by rcdn-core2-3.cisco.com (8.14.5/8.14.5) with ESMTP id rBKLfOHs028645 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 20 Dec 2013 21:41:24 GMT Received: from xmb-rcd-x09.cisco.com ([169.254.9.86]) by xhc-rcd-x08.cisco.com ([173.37.183.82]) with mapi id 14.03.0123.003; Fri, 20 Dec 2013 15:41:24 -0600 From: "Upinder Malhi (umalhi)" To: "linux-rdma@vger.kernel.org" , " Dreier" Subject: [PATCH for-next] IB/usnic: Append documentation to usnic_transport.h and cleanup Thread-Topic: [PATCH for-next] IB/usnic: Append documentation to usnic_transport.h and cleanup Thread-Index: AQHO/cw6nEH4NTrh+0K5uwYt6ID/ww== Date: Fri, 20 Dec 2013 21:41:23 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.155.161.43] Content-ID: <78E729BAE58EC54A8B492F38AF3B549F@emea.cisco.com> MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch depends on http://www.spinics.net/lists/linux-rdma/msg18193.html. Add comment describing usnic_transport_rsrv port and remove extraneous space from usnic_transport.c Signed-off-by: Upinder Malhi --- drivers/infiniband/hw/usnic/usnic_transport.c | 1 - drivers/infiniband/hw/usnic/usnic_transport.h | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/usnic/usnic_transport.c b/drivers/infiniband/hw/usnic/usnic_transport.c index 73dffc9..9182cc8 100644 --- a/drivers/infiniband/hw/usnic/usnic_transport.c +++ b/drivers/infiniband/hw/usnic/usnic_transport.c @@ -184,7 +184,6 @@ int usnic_transport_sock_get_addr(struct socket *sock, int *proto, return 0; } - int usnic_transport_init(void) { roce_bitmap = kzalloc(ROCE_BITMAP_SZ, GFP_KERNEL); diff --git a/drivers/infiniband/hw/usnic/usnic_transport.h b/drivers/infiniband/hw/usnic/usnic_transport.h index 21371bb..7e5dc6d 100644 --- a/drivers/infiniband/hw/usnic/usnic_transport.h +++ b/drivers/infiniband/hw/usnic/usnic_transport.h @@ -28,6 +28,10 @@ const char *usnic_transport_to_str(enum usnic_transport_type trans_type); */ int usnic_transport_sock_to_str(char *buf, int buf_sz, struct socket *sock); +/* + * Reserve a port. If "port_num" is set, then the function will try + * to reserve that particular port. + */ u16 usnic_transport_rsrv_port(enum usnic_transport_type type, u16 port_num); void usnic_transport_unrsrv_port(enum usnic_transport_type type, u16 port_num); /*