From patchwork Mon May 15 22:47:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9728167 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4E1F460386 for ; Mon, 15 May 2017 22:48:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39C5728464 for ; Mon, 15 May 2017 22:48:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E4F12892A; Mon, 15 May 2017 22:48:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5715128464 for ; Mon, 15 May 2017 22:48:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752355AbdEOWr5 (ORCPT ); Mon, 15 May 2017 18:47:57 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:60329 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752324AbdEOWru (ORCPT ); Mon, 15 May 2017 18:47:50 -0400 X-IronPort-AV: E=Sophos;i="5.38,346,1491235200"; d="scan'208";a="17886599" Received: from mail-cys01nam02lp0048.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) ([207.46.163.48]) by ob1.hgst.iphmx.com with ESMTP; 16 May 2017 06:47:46 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=h2WNHxkIN9gFUJuAgo7PCIf1f2fAWTdaAW6TqW0N3Vc=; b=ew3HlZQTaDWbdVYhZJkmUfgeWFOK2GHyt7PxSm3Et6B+GPq6QZMJWB31RVF616qyTLB5fZnepGWeXSk8USi1wSldLIYZuR+ZYeVtohaqgo0uLebsNPncaH6z82kFSaheA9NySNdqyUg3JEJxRDIyYjgamSHHPydfWs55xL6TZe8= Received: from CY4PR04CA0031.namprd04.prod.outlook.com (10.172.133.17) by CO2PR04MB716.namprd04.prod.outlook.com (10.141.229.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Mon, 15 May 2017 22:47:43 +0000 Received: from CO1NAM04FT042.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::206) by CY4PR04CA0031.outlook.office365.com (2603:10b6:903:c6::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16 via Frontend Transport; Mon, 15 May 2017 22:47:42 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by CO1NAM04FT042.mail.protection.outlook.com (10.152.91.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1075.5 via Frontend Transport; Mon, 15 May 2017 22:47:42 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 79.32.19026.C003A195; Mon, 15 May 2017 15:47:40 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Mon, 15 May 2017 15:47:36 -0700 X-AuditID: 0ac94371-41ba798000004a52-05-591a300c70fd Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 13.E3.11415.8003A195; Mon, 15 May 2017 15:47:36 -0700 (PDT) From: Bart Van Assche To: Doug Ledford CC: , Jason Gunthorpe , Leon Romanovsky , Bart Van Assche Subject: [PATCH rdma-core 3/5] srp_daemon: Add command-line option -j Date: Mon, 15 May 2017 15:47:25 -0700 Message-ID: <20170515224733.29586-4-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170515224733.29586-1-bart.vanassche@sandisk.com> References: <20170515224733.29586-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKLMWRmVeSWpSXmKPExsXCddJ5kS6vgVSkwRR+i5fnP7BafL9hanGy 7x+zxbNDvSwOLB7Pph9m8vi+o5fR4/2+q2wenzfJBbBEcdmkpOZklqUW6dslcGXMmruYvWCy bMXj3h0sDYzvxLsYOTkkBEwkfl+5ytrFyMUhJLCUSeLq/wdsEM4ORonOSefZYKrm7O9kh0hs ZpRYdOQlK0iCTcBI4tv7mSwgtoiAmsSmV4vAipgF1jBK/Njyix0kISzgKjH3UT8jiM0ioCpx 9u8asGZeAXuJG18/MUJskJc4u2UnM4jNKeAg8ffmU6YuRg6gbfYSP0+rgcyUEGhjldh5AmIO r4CgxMmZT8AWMwtISBx88QKsV0hAXeLkkvlMExiFZiEpm4WkbAEj0ypGsdzMnOLc9NQCQxO9 4sS8lMzibL3k/NxNjJDALtzB+Pq29yFGAQ5GJR7eFSskI4VYE8uKK3MPMUpwMCuJ8HJwS0UK 8aYkVlalFuXHF5XmpBYfYpTmYFES582SnRohJJCeWJKanZpakFoEk2Xi4JRqYJTNStDcePe9 9A6WF8oLjs5XdQ78OztN8U7grzvb+ll2nDFvjM7NO/fhvoaEcvMBL+euOtV+2fece7c5RNvW V2z+FtOx4htzmO9UQ30zHpXdGxTqEi/92HP6hsgmNgubN6+dF96VUlxdziZ1YfIqVZ6/vo6W 64wjt99PZN2k6nnf3IK1pMH/mRJLcUaioRZzUXEiAHwshAdoAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCJMWRmVeSWpSXmKPExsXCtZEjRZfDQCrS4MoqE4uDP9sYLV6e/8Bq 8f2GqcXJvn/MFs8O9bI4sHo8m36YyeP7jl5Gj/f7rrJ5TFtznsnj8ya5ANYoLpuU1JzMstQi fbsEroxZcxezF0yWrXjcu4OlgfGdeBcjJ4eEgInEnP2d7F2MXBxCAhsZJbY/+s0MkmATMJL4 9n4mC4gtIqAmsenVInYQm1lgDaPExr1gcWEBV4m5j/oZQWwWAVWJs3/XsILYvAL2Eje/HmeE WCAvcXbLTrCZnAIOEn9vPmXqYuQAWmYv8fO02gRG7gWMDKsYxXIzc4pz0zMLDA31ihPzUjKL s/WS83M3MYLDgTNyB+PTieaHGJk4OKUaGI0PFrimtjS7pPdE1y6fY2hxrlCy9d/XnpnbQiaY sszf5Cn9/8mxXxs1g/S3zRBXnXdLQrlczv+OHJ9S+Nmnhi6eUlW3Vr99u+uCBdemfXfdU1dK SarUKTt/0NuaV/vSNbdl35J512Y9klv5Nr0udWlirfdsbq/igKheIT4ljb85cg/z520RVGIp zkg01GIuKk4EANW+Aoe3AQAA MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39850400002)(39840400002)(39410400002)(39450400003)(39860400002)(39400400002)(2980300002)(438002)(199003)(189002)(9170700003)(76176999)(50986999)(8676002)(5660300001)(81166006)(47776003)(50226002)(8936002)(189998001)(575784001)(356003)(86362001)(5003940100001)(106466001)(33646002)(36756003)(4326008)(305945005)(77096006)(2950100002)(6666003)(2906002)(54906002)(6916009)(50466002)(72206003)(53936002)(478600001)(1076002)(110136004)(38730400002)(107886003); DIR:OUT; SFP:1102; SCL:1; SRVR:CO2PR04MB716; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT042; 1:8iRda9nSYN8TyC0TFkgSgrKIE8XY6yS9KABF+/LfloDIKpEDP1hcwKP2i0CowMbCzjtIC9eEExGfZ15F6sOlW6kiIDdX4O6eUGeXUWa4zm9z9wqJeyI0Ov40WWxwq1/sauMqQ9khoPCQOQWdF4/nUGhnmoZi0okitoT1y9him+kceVR3izWQCf6bxhuz/7SIKl+03se832w0D4yMWWMBLPtD63pmy3/DRRkfzFcGLdmCm5Wa0a730IHeHny1xYn470G7ztZedb0LW10lahSlk0rqpijmegmpLiN9MNI8n3CweurvCgHJGixbmnEWwZhzzcE7NNxhN5YtUpScWqQPDF/uYMteoipnZv5Ihf4VVfJeZ6EcggsyqZVJ9O7zgg0DYRl2A3B9gwyS5ZyHHuCIcruqnFuVV7kc/U7ROXdGYR6i6vIxDL1nNuA+R2TcgaLPPLGgaed2aqzv18KwiGbF2H7mOKM7MtV5aAJbLdz24wpvRWzxio1RPYCji8t3HBP1FIqoaqqfeHsxHPBDUmTecXh/ZRSCBLmnAE2WyvL7SNGtRTXUh2bD68UZCT2dihtL X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e363116c-0ac3-4b8d-4013-08d49be46581 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081);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za+lZX65TZorRrGRQG8twnOxPzw=; 31:31bMQjJpHnx4RHPQ+9S51dKOe9ZhAeWWW4eRDFndn9wU9Nn60ncCbOnE38gvy+lZqFwaU1qtt/TpJGS6Q0pwwYYOYZSh3gms5IedPaPqAMoY97yzaTDCNJtEWx4thWdJOQUJh0k/4nti65t9NqkyfeZyIH5FbTW0zMuyULNfcJHXOVYasVmGNsclmBsoLv9pY/3IG1Qy/15PnxW2HYPHiNXjpC4C68TTHIB+lbl3bkvFqrHxYs32JWumHRwlA42KwB0G3TTbmMqo7Lh19SH3Yg== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CO2PR04MB716; 20:ppPDEPSJnzAXq+4Pu7Bg8opH+3UW9zxE31j0B9KWQRXoAb3IyI6Igb+ScObkjl/OEoujdPEv5OwT9bzlaIJq3dclZjVzpOsLXOYrdJTdG/qYQBNinG5YDM79CFGW3jg1LeUwPudshYmR+w7NCApYBcRqKjNbpTXfFikHHzQkXqPC9rujj87uzoIEFcXq8wOrz23tFVMnyRKTk/YOHhVOnjf9PLheDcpTP/8N0PodQJL0GjQ6zavKjD4PmD+v74eF1Kn9yCMij05zw+WdeB/IniRtNm2xqvXLaoxCor3ZJ3IOWsn/Fv8rAXKPx6oScsUrqRwhGtRgxb+S0qtG9jIbSFrF5F1yxMtwLYyEmcssTOa2S23r8bkKbsLhqL+I9Wb0mqB0ndQuB5PrMWD6CXdpLLCTFKrKf8RcUsn34p548F4752slWlK4TdysnFXwFuUTmqsopF+1rEbh1Yoa0AFQA+GuAHFPzDKsXnW3BNupe75hNAIIOKuN/LZl31lFDGtV X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(21532816269658)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(3002001)(93006095)(93004095)(10201501046)(6055026)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123555025)(20161123558100)(20161123560025)(6072148); SRVR:CO2PR04MB716; BCL:0; PCL:0; RULEID:; SRVR:CO2PR04MB716; X-Microsoft-Exchange-Diagnostics: 1; CO2PR04MB716; 4:R9/pQukQhpQZxVBMDnATbGCBGKy+cRcuAu0qzrhwoP9jwmYScVOidyfeoyUS1G0za+xJJDkKjAX0lXsqeADE9Dle9OZc1Dy4DAaeInxsuJ07bLRSEGFFsylUdnKjbwQB14dteV8cw7M+zJADRebq2vggpgWY4f2S1U4A2dqhUWFAqtMF1ybYwHn89sOBV3+0WVxNfTlZtbREgOsR/cn/EUyVLo+nGxO2X1/36tmoZePABdJu/1tWiSwXHsjbQVS4KXciOKDPundiEBS2dmPWxmce5cmVB8K1mf9NbaStNqIHQVyBykTJ29jNwRfNAx26Yg2vL8GY/zIARSpU68Xd+dif5nXXN0bH8DzvUby6lZrU3eDMqZlnSYOmSE4W7CTIM2w83K9HjIoVfY4crJ+Lvw90UpiG8h+qfpYpiuVzfoHB5slw/dC0Nt8aplR3MiKcQGD3h3ihBc5ge9j8EUFhG3segqhKngxuUyjdLxr0osAcCN7zvKkGlSD8ujtqATCuzGRxszoNJsbWHsm+TJsZNjnK02wCkowf/z9zgpn48S4Ys6GIpHpMlgWLaPD+op0Co0g3waeMrYc56JSCkKs681LUM4o5slR0fPTKbjDbFMdk7GekwzxK/63oZtRTfbAFPgNtC4PxmaG59nsJlDZTk2kTRfSS5wB6nukMTtI4zctdR9vbvUMOEJhmiStHmbG9GmYVr1s34qmH5ch2nSRxGpsXXtA366IA6emtjkr3WkOYKrN9xl4Po3RkiUIa6VfIkNsggU1FP+Zi61WKJgNg7jAVpnewoqtHPRN8MDHiX8pbQ53MPy1mzg86fQ33uLu1ROb8FNgsxVgJmnE9CM5aTWubmdXJ4YcvAZB24OHRk78lwZoE0v+fYAojuhz7ZW95jEaTQqesQ+pCHxcfSVWYxZOShH1SN/cG7cQnV1+Fl5c = X-Forefront-PRVS: 0308EE423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UdMPynRpQOKQyBJhtPtoGrN8aLDS8DF+JqUXFtMY8AYHcj5lcxr+EXsQ==; 24:gdAnE7ARjeFsUVKIr8SA4xMnmT9VKVbg+faojMa/kzLpZMzQpFPPp4jUhyv4ulwHkjOCLE8aG6yuQVxWdqyoDL4mv9YYypT5haFqhOO2dgo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR04MB716; 7:ZUbQpu5SZpP97dCoXuychcZ+kHZNgMZ5C3evbkPzWKifC3IS9pa2zrcy681mme+Dbv12Dx4o29z4xc6Q00Xba2JWq/4WK0oH/flBm+At2cn89XEy7Zzho3NmRLP2VMEhWS6qiZnHyd57K5XDGYtupiPeuYBGMZofnY+ZeojD6mE7ckuTih1pDNwEg6IRajffr6V1V+T3dekG8XLMpmsZ3bMCpP0o9TlB1VC9+qHgs6Zh1MGlliXADR1sb2ovHBYO1rJYQBYdU5273oSkNojn1XuMYNg6BvdK7bhClNnHKEpHpeeJMRpaw5MAplOtAAQ4MD4V6pwPxy300LcSC4mIgw==; 20:8BrZjkO63V5wdABSNkq2zvOrQjo3rkiOnsdS4TIq7qmEeJ49QFpRJYckV1JX+NMUH53ovUCz+C6QX6F+Hw9PK0eR+zxH0UOBn4mMDz9yNfs6MGgQJQddXZk7csm3lr5+4e76cSep5st/ToOcbmRoLh98Ga2UjZ80wZdFkEOykXw= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2017 22:47:42.1243 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR04MB716 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This command-line option is used in a later patch to avoid having to start a shell script from a udev rule. Signed-off-by: Bart Van Assche --- srp_daemon/srp_daemon.1.in | 15 +++++++++++---- srp_daemon/srp_daemon.c | 16 +++++++++++++++- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/srp_daemon/srp_daemon.1.in b/srp_daemon/srp_daemon.1.in index 02e1f2df..82dc3241 100644 --- a/srp_daemon/srp_daemon.1.in +++ b/srp_daemon/srp_daemon.1.in @@ -5,7 +5,7 @@ srp_daemon \- Discovers SRP targets in an InfiniBand Fabric .SH SYNOPSIS -.B srp_daemon\fR [\fB-vVcaeon\fR] [\fB-d \fIumad-device\fR | \fB-i \fIinfiniband-device\fR [\fB-p \fIport-num\fR]] [\fB-t \fItimeout(ms)\fR] [\fB-r \fIretries\fR] [\fB-R \fIrescan-time\fR] [\fB-f \fIrules-file\fR] +.B srp_daemon\fR [\fB-vVcaeon\fR] [\fB-d \fIumad-device\fR | \fB-i \fIinfiniband-device\fR [\fB-p \fIport-num\fR] | \fB-j \fIdev:port\fR] [\fB-t \fItimeout(ms)\fR] [\fB-r \fIretries\fR] [\fB-R \fIrescan-time\fR] [\fB-f \fIrules-file\fR] .SH DESCRIPTION @@ -41,13 +41,20 @@ Print more verbose output Print even more verbose output (debug mode) .TP \fB\-i\fR \fIinfiniband-device\fR -Work on \fIinfiniband-device\fR. This option should not be used with -d. +Work on \fIinfiniband-device\fR. This option should not be used with -d nor +with -j. .TP \fB\-p\fR \fIport-num\fR -Work on port \fIport-num\fR (default 1). This option must be used with -i and should not be used with -d. +Work on port \fIport-num\fR (default 1). This option must be used with -i and +should not be used with -d nor with -j. +.TP +\fB\-j\fR \fIdev:port\fR +Work on port number \fIport\fR of InfiniBand device \fIdev\fR. This option +should not be used with -d, -i nor with -p. .TP \fB\-d\fR \fIumad-device\fR -Use device file \fIumad-device\fR (default /dev/infiniband/umad0) This option should not be used with -i or -p. +Use device file \fIumad-device\fR (default /dev/infiniband/umad0) This option +should not be used with -i, -p nor with -j. .TP \fB\-c\fR Generate output suitable for piping directly to a diff --git a/srp_daemon/srp_daemon.c b/srp_daemon/srp_daemon.c index 9011fe5e..c0e8d23d 100644 --- a/srp_daemon/srp_daemon.c +++ b/srp_daemon/srp_daemon.c @@ -226,6 +226,7 @@ static void usage(const char *argv0) fprintf(stderr, "-d use umad Device \n"); fprintf(stderr, "-i use InfiniBand device \n"); fprintf(stderr, "-p use Port num \n"); + fprintf(stderr, "-j : use the IB dev / port_num combination \n"); fprintf(stderr, "-R perform complete Rescan every seconds\n"); fprintf(stderr, "-T Retries to connect to existing target after Timeout of seconds\n"); fprintf(stderr, "-l Transport retry count before failing IO. should be in range [2..7], (default 2)\n"); @@ -1623,7 +1624,7 @@ static int get_config(struct config_t *conf, int argc, char *argv[]) while (1) { int c; - c = getopt(argc, argv, "caveod:i:p:t:r:R:T:l:Vhnf:"); + c = getopt(argc, argv, "caveod:i:j:p:t:r:R:T:l:Vhnf:"); if (c == -1) break; @@ -1645,6 +1646,19 @@ static int get_config(struct config_t *conf, int argc, char *argv[]) return -1; } break; + case 'j': { + char dev[32]; + int port_num; + + if (sscanf(optarg, "%31[^:]:%d", dev, &port_num) != 2) { + pr_err("Bad dev:port specification %s\n", + optarg); + return -1; + } + conf->dev_name = strdup(dev); + conf->port_num = port_num; + } + break; case 'c': ++conf->cmd; break;