From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bart Van Assche Subject: Re: [RFC] ib_srpt: initial .40-rc1 drivers/infiniband/ulp/srpt merge Date: Sun, 22 May 2011 21:14:23 +0200 Message-ID: References: <1305682604-21383-1-git-send-email-nab@linux-iscsi.org> <20110518170556.GB2595@obsidianresearch.com> <20110519174420.GD12525@obsidianresearch.com> <20110519184113.GE12525@obsidianresearch.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mail-vx0-f174.google.com ([209.85.220.174]:42185 "EHLO mail-vx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752237Ab1EVTOo (ORCPT ); Sun, 22 May 2011 15:14:44 -0400 In-Reply-To: <20110519184113.GE12525@obsidianresearch.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Jason Gunthorpe Cc: "Nicholas A. Bellinger" , linux-kernel , linux-scsi , linux-rmda , Roland Dreier , Vu Pham , David Dillow , James Bottomley On Thu, May 19, 2011 at 8:41 PM, Jason Gunthorpe wrote: > This is why in the IB verbs architecture nearly everything is tied to > a *device*, not a port. LIO has a feature called "access control lists" that allows to define which initiators are allowed to log in to a target. For a single-rail HCA it makes most sense to configure that information per HCA. For a dual-rail HCA the most flexible approach is to allow the user to configure ACLs per HCA port. That made me wonder whether it is possible to find out from software whether a dual-port HCA is single-rail or dual-rail. A quick glance at struct ib_device_attr and struct ib_port_attr in didn't yield any field usable for this purpose. Did I overlook something ? Bart.