All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <michaelc@cs.wisc.edu>
To: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Cc: Eddie Wai <eddie.wai@broadcom.com>,
	"open-iscsi@googlegroups.com" <open-iscsi@googlegroups.com>,
	"James.Bottomley@suse.de" <James.Bottomley@suse.de>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	Lalit Chandivade <lalit.chandivade@qlogic.com>,
	Ravi Anand <ravi.anand@qlogic.com>,
	Harish Zunjarrao <harish.zunjarrao@qlogic.com>
Subject: Re: [RFC-V2 PATCH] iscsiadm: Add netconfig support in iscsiadm and iscsid
Date: Thu, 05 May 2011 00:04:25 -0500	[thread overview]
Message-ID: <4DC22FD9.4000908@cs.wisc.edu> (raw)
In-Reply-To: <5E4F49720D0BAD499EE1F01232234BA8728AC7E529@AVEXMB1.qlogic.org>

On 05/04/2011 07:42 AM, Vikas Chaudhary wrote:
>> -----Original Message-----
>> From: Eddie Wai [mailto:eddie.wai@broadcom.com]
>> Sent: Monday, May 02, 2011 5:19 AM
>> To: open-iscsi@googlegroups.com
>> Cc: James.Bottomley@suse.de; michaelc@cs.wisc.edu; linux-
>> scsi@vger.kernel.org; Vikas Chaudhary; Lalit Chandivade; Ravi Anand; Harish
>> Zunjarrao
>> Subject: Re: [RFC-V2 PATCH] iscsiadm: Add netconfig support in iscsiadm and
>> iscsid
>>
>> Hello Vikas,
>>
>> The patch looks good but I have a few questions/comments in relation to
>> the general scheme of setting these iface net parameters:
>>
>> 1.  As far as I understand, each iface file of the same hw must now
>> incorporate an unique iface_num which will be used to key off the
>> corresponding iface settings in the transport.  Iscsiadm will send a
>> UEVENT along with the net contents to the transport only when it is
>> explicitly asked to apply the update via the command line.  Perhaps it
>> would be beneficial to have the initiator apply the changes implicitly
>> like how it is currently making the call to the
>> iscsi_host_set_net_params just prior to all the ep_connect calls.  This
>> will allow the current iface parameters to be set for the corresponding
>> ep_connect call.
>
> Yes, it makes sense. We can add flag similar to "t->template->set_host_ip"
> and allow implicit network configuration for each ep_connect.
>
> Mike C, do you see any issues?

No.

And for the iface_num, I was also think working on just making the iface 
number more of a string or something. Userspace could then just pass 
down any value it wanted, so drivers like bnx2i/cxgbi/be2iscsi would not 
have to worry about the value. It could just be the userpace iface name 
since that is unique, and it would allow us to match the iface to the 
kernel object. Still working on it though. I have not completely 
convince myself. Do you guys have any issues with it or any comments?


>
> However, when we apply network settings for qla4xxx, it will do logout and
> login all devices, so to avoid all devices getting logout and login for each
> ep_connect call we do not want to apply network settings for each ep_connect.
>
>>
>> 2. In the qla4xxx code changes, it looks like each Scsi_Host is only
>> allowing 1 IPv4 and 2 IPv6 addresses to the applied to the HBA.  This is
>> conceivable as each interface can only assume that number of addresses.
>> But in the case of VLANs, how do you handle the case when the VLANs
>> assume different IP addresses and subnets when they are based off of the
>> same HBA?
>>
>> This can be resolved easily if we have a direct reference to the iface
>> parameters upon the ep_connect call.  Perhaps embed this info (or
>> iface_num) to the Scsi_Host struct?  Or just do as proposed in (1).
>>
>> 3. Its probably a good idea to bump the ISCSI_UEVENT_MAX #define since
>> the netlink.c in the initiator uses it to error out undefined events.
>>>          ISCSI_UEVENT_PATH_UPDATE        = UEVENT_BASE + 20,
>>> +       ISCSI_UEVENT_SET_NET_CONFIG     = UEVENT_BASE + 21,
>>>
>>>          ISCSI_UEVENT_MAX                = ISCSI_UEVENT_PATH_UPDATE,
>> +       ISCSI_UEVENT_MAX                = ISCSI_UEVENT_SET_NET_CONFIG,
>>>
>>
>
> Yes, we will fix this.

I will fix that up for you.

>
>> 4. Although the newly defined "set_net_config" to the iscsi_transport
>> structure in the driver is a new augmentation, its interesting that the
>> iscsi_transport_template in the initiator already has a "set_net_config"
>> entry which is currently used for uip_broadcast_params.  We probably
>> should change the name of one of them.
>
> We are not able to find duplication of "set_net_config" on master branch of
> open_iscsi. Can you please point out exact location?.
>

Eddie, is referring to some code in a distro specific patch. Eddie, you 
probably have a better picture than Vikas of what is going on since you 
have seen the uip related patches. Any naming suggestions?

  reply	other threads:[~2011-05-05  5:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-02 18:35 [RFC-V2 PATCH] iscsiadm: Add netconfig support in iscsiadm and iscsid vikas.chaudhary
2011-05-01 23:48 ` Eddie Wai
2011-05-04 12:42   ` Vikas Chaudhary
2011-05-05  5:04     ` Mike Christie [this message]
2011-05-05 18:16       ` Eddie Wai
2011-05-06 12:49       ` Vikas Chaudhary

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=4DC22FD9.4000908@cs.wisc.edu \
    --to=michaelc@cs.wisc.edu \
    --cc=James.Bottomley@suse.de \
    --cc=eddie.wai@broadcom.com \
    --cc=harish.zunjarrao@qlogic.com \
    --cc=lalit.chandivade@qlogic.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=open-iscsi@googlegroups.com \
    --cc=ravi.anand@qlogic.com \
    --cc=vikas.chaudhary@qlogic.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.