[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130531121737.GB1311@fedora-17-guest.blr.amer.dell.com>
Date: Fri, 31 May 2013 05:17:49 -0700
From: <Narendra_K@...l.com>
To: <bjorn@...k.no>
CC: <netdev@...r.kernel.org>, <bhutchings@...arflare.com>
Subject: Re: [RFC PATCH] Initialize dev_id sysfs attribute to -1 by default
On Thu, May 30, 2013 at 07:08:46PM +0530, Bjørn Mork wrote:
>
> <Narendra_K@...l.com> writes:
>
> > From: Narendra K <narendra_k@...l.com>
> >
> > 'dev_id' sysfs attribute is initialized to zero by default.
> > It is also zero based. This creates ambiguity in differentiating
> > whether the driver set it to zero or it is the default value.
> > Initialize 'dev_id' to -1 to make the scenario unambiguous.
>
> I understand your concern, but I don't think you can do this. It
> changes the userspace API, and has some very visible side effects.
>
> Please take a look at net/ipv6/addrconf.c
Ok, thank you for pointing it. I missed it while looking for its
possible use scenarios.
With regards,
Narendra K
Linux Engineering
Dell Inc.
--
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