From: Mike Christie <michaelc@cs.wisc.edu>
To: Michael Chan <mchan@broadcom.com>
Cc: "open-iscsi@googlegroups.com" <open-iscsi@googlegroups.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"James.Bottomley@HansenPartnership.com"
<James.Bottomley@HansenPartnership.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
Karen Xie <kxie@chelsio.com>,
Jayamohan Kalickal <jayamohank@serverengines.com>
Subject: Re: [PATCH 4/4] bnx2i: Add bnx2i iSCSI driver.
Date: Thu, 07 May 2009 16:01:30 -0500 [thread overview]
Message-ID: <4A034C2A.50107@cs.wisc.edu> (raw)
In-Reply-To: <1241715824.9177.8.camel@HP1>
Michael Chan wrote:
> On Wed, 2009-05-06 at 09:48 -0700, Mike Christie wrote:
>>> +
>>> +/**
>>> + * bnx2i_nl_mesg_recv -
>>> + * @buf: pointer to buffer containing vendor specific message
>>> + * @buf: buffer length
>>> + *
>>> + */
>>> +static int bnx2i_nl_mesg_recv(struct Scsi_Host *shost, uint16_t priv_op,
>>> + int status, char *buf, int buflen)
>>> +{
>>> + struct bnx2i_hba *hba = iscsi_host_priv(shost);
>>> +
>>> + switch (priv_op) {
>>> + case NX2_UIO_UEVENT_NEIGH_LOOKUP:
>>> + default:
>>> + /* handle by cnic driver */
>>> + hba->cnic->nl_priv_msg_recv(hba->cnic, priv_op, buf, buflen);
>>> + break;
>>> + }
>>> +
>>> + return buflen;
>>> +}
>> I think I was wrong with one of the comments I gave you.
>>
>> It seems like we have two iscsi net config models.
>>
>> 1. qla4xxx and Server Engines type of setup where the driver just tells
>> the card to use some ip or do dhcp and some other net settings and it
>> does all the net magic. The iscsi driver does not have to worry about
>> anything like the dhcp process or arp. It only passes down the setup values.
>>
>> 2. cxgb3i and bnx2i type of model where kernel or userspace code is
>> needed to execute many net operations.
>> - Right now, cxgb3i sort of cheated :) and only supports static IPs. It
>> currently uses the iscsi set param interface to do this.
>>
>> - bnx2i wants to add more complicated features and is going to do them
>> in userspace. It us using the private messages that were added in the
>> previous patch.
>>
>>
>> I think cxgb3i is one day going to want to support the same features
>> bnx2i does. If that is right, then should we just make the NX2_UIO
>> events common iscsi events, and hook cxb3i in? It would not use the
>> iscsi set param interface at all and would work just like bnx2i. Is that
>> possible? What about future drivers? Are done making iscsi cards and
>> drivers. If so, thank goodness :) If not then maybe we want to consider
>> some future driver using the #2 module and possibly using this.
>>
>> If cxgb3i is really only going to support static ip setup and we think
>> that bnx2i is going to be unique on how it sets up the network then I
>> NX2_UIO private events are fine. Or is this a case of we are thinking
>> that iscsi hardware people are creating crazy interfaces so there is no
>> why to predict what they are going to do so there is no point in trying
>> to design for them.
>
> If there is any possibility that cxgb3i will use something similar to
> bnx2i, I think we can change the message to a standard one and make the
> message structure somewhat more generic. We'll probably still need a
> private area in the message for hardware or vendor specific information.
>
Ok sounds good to me.
next prev parent reply other threads:[~2009-05-07 21:01 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-01 20:00 [PATCH 0/4] Add bnx2 iscsi support Michael Chan
2009-05-01 20:00 ` [PATCH 1/4] bnx2: Add support for CNIC driver Michael Chan
[not found] ` <1241208039-6813-1-git-send-email-mchan-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2009-05-01 20:00 ` [PATCH 2/4] cnic: Add new " Michael Chan
2009-05-01 20:00 ` [PATCH 3/4] iscsi class, libiscsi: Add net config Michael Chan
[not found] ` <1241208039-6813-4-git-send-email-mchan-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2009-05-06 16:40 ` Mike Christie
2009-05-06 16:42 ` Michael Chan
2009-06-08 17:56 ` James Bottomley
2009-06-08 17:59 ` Michael Chan
2009-06-08 18:13 ` James Bottomley
2009-06-08 18:07 ` Mike Christie
[not found] ` <4A2D5374.3030503-hcNo3dDEHLuVc3sceRu5cw@public.gmane.org>
2009-06-08 20:07 ` Hans de Goede
2009-06-08 20:06 ` Michael Chan
2009-06-08 20:24 ` Mike Christie
2009-06-08 20:27 ` Hans de Goede
2009-05-01 20:00 ` [PATCH 4/4] bnx2i: Add bnx2i iSCSI driver Michael Chan
2009-05-06 16:48 ` Mike Christie
2009-05-06 23:02 ` Karen Xie
2009-05-07 17:03 ` Michael Chan
2009-05-07 21:01 ` Mike Christie [this message]
2009-05-19 1:50 ` Michael Chan
2009-05-19 14:22 ` Mike Christie
2009-05-19 20:47 ` Michael Chan
2009-05-19 21:58 ` Mike Christie
2009-05-20 16:58 ` Michael Chan
2009-05-20 19:57 ` Mike Christie
[not found] ` <4A14608F.6070800-hcNo3dDEHLuVc3sceRu5cw@public.gmane.org>
2009-05-20 22:22 ` Michael Chan
2009-05-20 22:51 ` Mike Christie
-- strict thread matches above, loose matches on Subject: below --
2009-06-09 1:14 [PATCH 0/4] Add Broadcom " Michael Chan
[not found] ` <1244510084-4457-1-git-send-email-mchan-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2009-06-09 1:14 ` [PATCH 4/4] bnx2i: Add " Michael Chan
2009-04-24 0:22 [PATCH 0/4] Add bnx2 iSCSI support Michael Chan
[not found] ` <1240532563-23048-1-git-send-email-mchan-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2009-04-24 0:22 ` [PATCH 4/4] bnx2i: Add bnx2i iSCSI driver Michael Chan
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=4A034C2A.50107@cs.wisc.edu \
--to=michaelc@cs.wisc.edu \
--cc=James.Bottomley@HansenPartnership.com \
--cc=davem@davemloft.net \
--cc=jayamohank@serverengines.com \
--cc=kxie@chelsio.com \
--cc=linux-scsi@vger.kernel.org \
--cc=mchan@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=open-iscsi@googlegroups.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).