All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Hutchings <bhutchings@solarflare.com>
To: Mahesh Bandewar <maheshb@google.com>
Cc: David Miller <davem@davemloft.net>, netdev <netdev@vger.kernel.org>
Subject: Re: [PATCH 01/20] net-core: extending (hw_/wanted_/vlan_)features fields to a bitmap.
Date: Wed, 06 Apr 2011 02:27:51 +0100	[thread overview]
Message-ID: <1302053271.2935.152.camel@localhost> (raw)
In-Reply-To: <1302050665-10460-2-git-send-email-maheshb@google.com>

On Tue, 2011-04-05 at 17:44 -0700, Mahesh Bandewar wrote:
> Converting current use of (hw_/wanted_/vlan_)features to
> legacy_(hw_/wanted_/vlan_)features to differntiate from the proposed usage.
[...]
> @@ -1029,44 +1065,51 @@ struct net_device {
>  	struct list_head	napi_list;
>  	struct list_head	unreg_list;
>  
> +#define DEV_FEATURE_WORDS	2
> +#define	DEV_FEATURE_BITS	(DEV_FEATURE_WORDS*sizeof(long)*BITS_PER_BYTE)
> +#define LEGACY_FEATURE_WORD	0
> +
>  	/* currently active device features */
> -	u32			features;
> +	unsigned long 		features;
>  	/* user-changeable features */
> -	u32			hw_features;
> +	DECLARE_BITMAP(hw_feature, DEV_FEATURE_BITS);
[...]

Sorry, you can't get rid of hw_features without converting all the
callers at the same time.  All code has to remain compilable after each
single commit.

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.


  parent reply	other threads:[~2011-04-06  1:27 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-06  0:44 [PATCH 00/20] extending (hw_/wanted_/vlan_)features fields to a bitmap Mahesh Bandewar
2011-04-06  0:44 ` [PATCH 01/20] net-core: " Mahesh Bandewar
2011-04-06  0:44   ` [PATCH 02/20] net-ipv4: " Mahesh Bandewar
2011-04-06  0:44     ` [PATCH 03/20] net-ipv6: " Mahesh Bandewar
2011-04-06  0:44       ` [PATCH 04/20] net-vlan: " Mahesh Bandewar
2011-04-06  0:44         ` [PATCH 05/20] net-bridge: " Mahesh Bandewar
2011-04-06  0:44           ` [PATCH 06/20] net-decnet: " Mahesh Bandewar
2011-04-06  0:44             ` [PATCH 07/20] net-dsa: " Mahesh Bandewar
2011-04-06  0:44               ` [PATCH 08/20] net-l2tp: " Mahesh Bandewar
2011-04-06  0:44                 ` [PATCH 09/20] net-phonet: " Mahesh Bandewar
2011-04-06  0:44                   ` [PATCH 10/20] net-sctp: " Mahesh Bandewar
2011-04-06  0:44                     ` [PATCH 11/20] net-wireless: " Mahesh Bandewar
2011-04-06  0:44                       ` [PATCH 12/20] loopback: " Mahesh Bandewar
2011-04-06  0:44                         ` [PATCH 13/20] veth: " Mahesh Bandewar
2011-04-06  0:44                           ` [PATCH 14/20] jme: " Mahesh Bandewar
2011-04-06  0:44                             ` [PATCH 15/20] sungem: " Mahesh Bandewar
2011-04-06  0:44                               ` [PATCH 16/20] sunhme: " Mahesh Bandewar
2011-04-06  0:44                                 ` [PATCH 17/20] usb-smsc75xx: " Mahesh Bandewar
2011-04-06  0:44                                   ` [PATCH 18/20] usb-smsc95xx: " Mahesh Bandewar
2011-04-06  0:44                                     ` [PATCH 19/20] virtio_net: " Mahesh Bandewar
2011-04-06  0:44                                       ` [PATCH 20/20] xen: " Mahesh Bandewar
2011-04-06  1:27   ` Ben Hutchings [this message]
2011-04-06  1:35     ` [PATCH 01/20] net-core: " Mahesh Bandewar
2011-04-06  1:45       ` Ben Hutchings
2011-04-06 10:29   ` Michał Mirosław
2011-04-06 17:34     ` Mahesh Bandewar
2011-04-07 15:00   ` [PATCHv2 " Mahesh Bandewar

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=1302053271.2935.152.camel@localhost \
    --to=bhutchings@solarflare.com \
    --cc=davem@davemloft.net \
    --cc=maheshb@google.com \
    --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.