linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mike Christie <michaelc@cs.wisc.edu>
To: "ravi.anand" <ravi.anand@qlogic.com>
Cc: James Bottomley <james.bottomley@suse.de>,
	Linux-SCSI Mailing List <linux-scsi@vger.kernel.org>,
	Vikas Chaudhary <vikas.chaudhary@qlogic.com>,
	open-iscsi <open-iscsi@googlegroups.com>,
	Karen Xie <kxie@chelsio.com>,
	Jayamohan Kalickal <jayamohank@serverengines.com>
Subject: Re: [PATCH 02/11] qla4xxx: added IPv6 support.
Date: Wed, 07 Apr 2010 12:41:32 -0500	[thread overview]
Message-ID: <4BBCC3CC.9000001@cs.wisc.edu> (raw)
In-Reply-To: <4BBBFF62.9090900@cs.wisc.edu>

On 04/06/2010 10:43 PM, Mike Christie wrote:
> On 04/06/2010 05:21 AM, ravi.anand wrote:
>>
>> On Feb 1, 2010, at 10:15 AM, Mike Christie wrote:
>>
>>> On 01/30/2010 12:28 AM, Ravi Anand wrote:
>>>>
>>>
>>>> + DEBUG2(dev_info(&ha->pdev->dev, "%s: DDB[%d] osIdx = %d "
>>>> + "State %04x ConnErr %08x "
>>>> + NIPQUAD_FMT ":%04d \"%s\"\n",
>>>
>>>
>>> Do you go down this path for ipv6 (looked like it did and did in other
>>> places)? NIPQUAD_FMT will not work, and we are trying to not use it
>>> NIPQUAD_FMT/NIPQUAD. See %pI4 use in qla4xxx_conn_get_param. There is
>>> also a %pI6 for ipv6.
>>>
>>> Also you need to update qla4xxx_conn_get_param and
>>> qla4xxx_host_get_param ip handling.
>>>>
>>>
>>
>> While trying to address the IPV6 part for conn_get_param() and
>> host_get_param(), we ran into
>> the dilemma how to populate IPV4 and IPV6 address at the same time.
>> Currently on our adapter IPV4 and IPV6 can be enabled at the same time
>> and can be active.
>>
>> So we wanted to find out if for following param mask :
>>
>> ISCSI_HOST_PARAM_IPADDRESS
>>
>> should we just fill the buffer for IPV4 and IPV6 address or should
>> we need define new param mask sepeartely for IPV6 ?
>>
>> Basically we will like to follow up with another patch to address this
>> part
>> on to of the patches which we have just pushed.
>>
>
> Right now iscsi_tcp supports ipv4 and ipv6 for that param. I think
> people have been saying it might be easier to break it up into a ipv4
> and ipv6 param.
>
> Karen, it seems like you are only supporting ipv4 right now. Any thoughts?
>
> Jay, it seems be2iscsi handling is incorrect. Is your driver supporting
> ipv6 right now?


After looking at the code, I think I misunderstood what you needed. You 
want to have multiple ip addresses at the same time, right?

be2iscsi needs the ability to support multiple ipv4 and/or ipv6 
addresses at the same time. I would think other cards are going to need 
this feature one day too, so maybe we could make this a little more generic.

Would having a ISCSI_HOST_PARAM_IPADDRESSES param where you can get N 
addresses work for all cases? For the netlink side we could just define 
the netlink msg to have a counter and some separator. And for bsg we 
could do something similar.

To display this in sysfs I think it gets more complicated, I think we 
need to add a sysfs file for each address. And then actually I think we 
want a sysfs dir for each address, because do want to config other 
params for each address like a port or subnet mask or dns info, etc 
(each item would be a sysfs file in some dir)? Or what about vlans too? 
Some cards support multiple vlans, so would you want

/sys/class/iscsi_host/host1
And then the tree under the host would be

tree host1

# this one would be a vlan
|-net_interface0
	|-ip
	|-subnet
	|-vlan_idA
|-net_interface1
	|-ip
	|-subnet
	|-vlan_idB
# no vlans but each interface has different ips
|-net_interface2
	|-ip
	|-subnet_mask
|-net_interface3
	|-ip
	|-subnet_mask

  parent reply	other threads:[~2010-04-07 17:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-30  6:28 [PATCH 02/11] qla4xxx: added IPv6 support Ravi Anand
2010-02-01 18:15 ` Mike Christie
2010-02-11 11:09   ` Ravi Anand
     [not found]   ` <7312FDA8-2587-4DA7-9762-978EA46A8B9C@qlogic.com>
2010-04-07  3:43     ` Mike Christie
2010-04-07  5:46       ` Karen Xie
2010-04-07 17:41       ` Mike Christie [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-04-07 17:26 Jayamohan Kalickal
2010-04-07 18:00 ` Mike Christie

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=4BBCC3CC.9000001@cs.wisc.edu \
    --to=michaelc@cs.wisc.edu \
    --cc=james.bottomley@suse.de \
    --cc=jayamohank@serverengines.com \
    --cc=kxie@chelsio.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).