From: Ben Hutchings <bhutchings@solarflare.com>
To: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
Cc: Mahesh Bandewar <maheshb@google.com>,
linux-netdev <netdev@vger.kernel.org>,
David Miller <davem@davemloft.net>
Subject: Re: extending feature word.
Date: Tue, 05 Apr 2011 13:07:41 +0100 [thread overview]
Message-ID: <1302005261.2932.4.camel@bwh-desktop> (raw)
In-Reply-To: <20110405113007.GA21358@rere.qmqm.pl>
On Tue, 2011-04-05 at 13:30 +0200, Michał Mirosław wrote:
> On Sat, Apr 02, 2011 at 08:09:14PM -0700, Mahesh Bandewar wrote:
> > On Sat, Apr 2, 2011 at 5:42 AM, Michał Mirosław <mirq-linux@rere.qmqm.pl> wrote:
> > > On Fri, Apr 01, 2011 at 07:07:05PM -0700, Mahesh Bandewar wrote:
> > > If you want to split the work, it would be clearer to first convert
> > > hw_features and wanted_features (with all the core code touching it -
> > > this is the easy part), then vlan_features (this includes drivers'
> > > and VLAN code) and then features (it's all over).
> > I like the idea of splitting but it will be only useful when all of it
> > is done and not partially, isn't it? Or am I missing something?
>
> Since this is a big change, when split it might be easier to follow.
> OTOH, with your idea of macro it might be easier to do incremental
> changes (I think this will be a lot of work for no gain in this case).
I strongly disagree with using macros for this. They are very likely to
conflict with other identifiers..
We might be able to get away with something like:
union {
u32 features;
u32 feature[N];
};
union {
u32 vlan_features;
u32 vlan_feature[N];
};
union {
u32 hw_features;
u32 hw_feature[N];
};
(assuming hw_features is new enough that there is no need for the
alias).
Anyway, if we're going to put all the feature words in net_device
there's no longer any reason for NETIF_F_LOOPBACK not to be in the first
word.
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
next prev parent reply other threads:[~2011-04-05 12:07 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-02 2:07 extending feature word Mahesh Bandewar
2011-04-02 12:42 ` Michał Mirosław
2011-04-03 3:09 ` Mahesh Bandewar
2011-04-05 11:30 ` Michał Mirosław
2011-04-05 12:07 ` Ben Hutchings [this message]
2011-04-05 22:15 ` Mahesh Bandewar
2011-04-08 10:05 ` Michał Mirosław
2011-04-08 18:17 ` Mahesh Bandewar
2011-04-10 10:19 ` Michał Mirosław
2011-04-11 18:45 ` Mahesh Bandewar
2011-04-11 18:54 ` Stephen Hemminger
2011-04-11 19:16 ` Mahesh Bandewar
2011-04-11 19:19 ` Michał Mirosław
2011-04-11 19:49 ` Stephen Hemminger
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=1302005261.2932.4.camel@bwh-desktop \
--to=bhutchings@solarflare.com \
--cc=davem@davemloft.net \
--cc=maheshb@google.com \
--cc=mirq-linux@rere.qmqm.pl \
--cc=netdev@vger.kernel.org \
/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.