public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: "Nicholas A. Bellinger" <nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org>
To: Roland Dreier <roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org>
Cc: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>,
	Jason Gunthorpe
	<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>,
	linux-kernel
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	linux-scsi <linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	linux-rmda <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Vu Pham <vu-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	David Dillow <dillowda-1Heg1YXhbW8@public.gmane.org>,
	James Bottomley
	<James.Bottomley-JuX6DAaQMKPCXq6kfMZ53/egYHeGw8Jk@public.gmane.org>
Subject: Re: [RFC] ib_srpt: initial .40-rc1 drivers/infiniband/ulp/srpt merge
Date: Wed, 18 May 2011 21:18:14 -0700	[thread overview]
Message-ID: <1305778694.2856.533.camel@haakon2.linux-iscsi.org> (raw)
In-Reply-To: <BANLkTi==bZ0h3o5FNrg8PSJFp6F-zh5hTA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Wed, 2011-05-18 at 12:17 -0700, Roland Dreier wrote:
> On Wed, May 18, 2011 at 11:02 AM, Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org> wrote:
> > Thanks for the feedback. I'm still wondering though about the
> > usefulness of disabling / enabling SRPT per HCA port. For the use
> > cases I know about SRP communication over all target ports will be
> > enabled as soon as target configuration has finished and more
> > fine-grained access configuration will occur by allowing/disallowing
> > certain initiators to log in.
> 
> I definitely think that allowing the flexibility to configure ports individually
> is required.  It's easy to imagine a case with a separate front-end and
> back-end networks on the two HCA ports (this would be a pretty normal
> ethernet config), where only one port should be a target port.
> 
> It may not be how people do things now but it should at least be possible.
> 

Hey guys,

Apologies for the slightly delay response here..  Just to clarify on
Bart's point above.  The srpt_port->port_wwn patch in question does
current ensure that sport->enabled has been set via an configfs
attribute at:

   /sys/kernel/config/target/srpt/$IB_PORT_GUID/tpgt_1/enable

and will reject all SRP login attempts to an individual struct srpt_port
until the attribute has been explictly triggered.

This allows ib_srpt to follow what is expected by rtsadmin-v2 +
lio-utils, and used to generate /etc/target/srpt_start.sh used to save
persistent fabric configuration.  Currently other fabrics like
iscsi-target and tcm_qla2xxx expect to be able to reject fabric login
requests before the full set of WWPN endpoints, LUNs, NodeACLs +
MappedLUNs have been recreated during an typical init.d/target start
operation.

I think it makes sense to do the same for the SRPT control plane on an
individual HCA port GUID basis as long as there are no underlying fabric
issues, and that Roland is happy.  In terms of supporting more than one
type of /sys/kernel/config/target/srpt/$WWPN/$TPGT/ layout, I would
really like to avoid this for mainline code unless there is a really
good reason..

Also, I think ib_srpt needs to properly support 'demo-mode' operation
in /var/target/fabric/ib_srpt.spec as this is very useful for testing
and development purposes.  I go ahead and get this added to upstream LIO
v4.1 in the next days and respin for mainline with Hch's review + Bart's
changes.

Thanks folks,

--nab

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2011-05-19  4:18 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-18  1:36 [RFC] ib_srpt: initial .40-rc1 drivers/infiniband/ulp/srpt merge Nicholas A. Bellinger
2011-05-18  7:47 ` Christoph Hellwig
     [not found]   ` <20110518074716.GA8927-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2011-05-18 16:46     ` Roland Dreier
2011-05-19  6:00     ` Nicholas A. Bellinger
2011-05-18 16:59 ` Bart Van Assche
     [not found]   ` <BANLkTi=e+v7PLcSc8GNov-TOXFF7rurXew-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-18 17:05     ` Jason Gunthorpe
2011-05-18 18:02       ` Bart Van Assche
2011-05-18 19:17         ` Roland Dreier
     [not found]           ` <BANLkTi==bZ0h3o5FNrg8PSJFp6F-zh5hTA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-19  4:18             ` Nicholas A. Bellinger [this message]
     [not found]               ` <1305778694.2856.533.camel-Y1+j5t8j3WgjMeEPmliV8E/sVC8ogwMJ@public.gmane.org>
2011-05-19 10:40                 ` Bart Van Assche
2011-05-19 16:57                   ` Jason Gunthorpe
     [not found]                   ` <BANLkTi=Xb-ypQNa3=MmwiLeE4Q9FWHnZXg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-19 20:03                     ` Nicholas A. Bellinger
     [not found]       ` <20110518170556.GB2595-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-05-19 17:29         ` Bart Van Assche
     [not found]           ` <BANLkTikOCeNcDvoCM=BOSxQaSECFhJ05Gg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-19 17:44             ` Jason Gunthorpe
2011-05-19 18:34               ` Bart Van Assche
     [not found]                 ` <BANLkTikOsqazAE-mHFrM+=4GTs+249Ae5Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-19 18:41                   ` Jason Gunthorpe
2011-05-22 19:14                     ` Bart Van Assche

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1305778694.2856.533.camel@haakon2.linux-iscsi.org \
    --to=nab-izhhd5pylfbp7fqvkimdcq@public.gmane.org \
    --cc=James.Bottomley-JuX6DAaQMKPCXq6kfMZ53/egYHeGw8Jk@public.gmane.org \
    --cc=bvanassche-HInyCGIudOg@public.gmane.org \
    --cc=dillowda-1Heg1YXhbW8@public.gmane.org \
    --cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org \
    --cc=vu-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox