[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1299620503.12601.26.camel@HP1>
Date: Tue, 8 Mar 2011 13:41:43 -0800
From: "Michael Chan" <mchan@...adcom.com>
To: "Neil Horman" <nhorman@...driver.com>
cc: "Ben Hutchings" <bhutchings@...arflare.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>,
"Dmitry Kravkov" <dmitry@...adcom.com>,
"Eddie Wai" <eddie.wai@...adcom.com>,
"Eilon Greenstein" <eilong@...adcom.com>
Subject: Re: [PATCH] cnic: fix double initalization of bnx2 based cards
On Tue, 2011-03-08 at 13:40 -0800, Neil Horman wrote:
> > No, that should not happen. When we compare NULL-terminated "bnx2" with
> > NULL-terminated "bnx2x", it won't match because the '\0' won't match the
> > 'x', right?
> >
> > I think the patch is good. We can avoid the unnecessary strcmp() when
> > we have a match with "bnx2" already. But we should not get both matches
> > even without the patch.
> >
> Crap, sorry, I rescind this (although you're right, it probably wouldn't hurt to
> roll this change in, just to save a potential second strcmp). Anywho, I'm
> getting this error on the ifup of my bnx2 interface:
> bnx2i: iSCSI not supported, dev=eth1
>
> That message appears to only get set (from my read) on cards driven by the bnx2x
> driver, and when I saw the 2 ifs rather than the if/else, I jumped to a
> conclusion that we must be using the bnx2x init path on a bnx2 driver.
> Apologies.
>
> /me wanders off to see where completion_status gets set to
> ISCSI_KCQE_COMPLETION_STATUS_ISCSI_NOT_SUPPORTED for bnx2.
On bnx2, this error code is set by the firmware if iSCSI is not
configured in NVRAM.
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists