From: Mahesh Bandewar <maheshb@google.com>
To: David Miller <davem@davemloft.net>
Cc: netdev <netdev@vger.kernel.org>, Mahesh Bandewar <maheshb@google.com>
Subject: [PATCH 00/20] extending (hw_/wanted_/vlan_)features fields to a bitmap.
Date: Tue, 5 Apr 2011 17:44:05 -0700 [thread overview]
Message-ID: <1302050665-10460-1-git-send-email-maheshb@google.com> (raw)
Extend "*features" from word to a BITMAP. This will eliminate the current upper
bound. Also making it a bitmap will allow us to use (set/test/clear)_bit()
macros/inline functions. So operation -
dev->features |= NETIF_F_SG
can be performed like-
set_bit(NETIF_F_SG_BIT, dev->feature);
Again it's not as easy as it looks since operations like -
bitmap = bitmap-a & bitmap-b
will be difficult but at the same time it would be imposible to use |=
operations for multi-word flags too. Bitmap will make it easier to manage
multi-word features but will need some macro / wrapper writing to achieve
complex bit manipulations.
Since the use of "features" is wide-spread, this can not be done in one shot.
So breaking the work into following 4 steps of which first two steps will be
achieved by this patch. Third step is the one which will take longer.
(1) convert hw_features and wanted_features to a bitmap but maintain the
backword compatibility with legacy_* option.
(2) Define fake macros for vlan_features and features until all the work of
converion is not complete.
(3) Complete the conversion.
(4) Define bitmaps for features and vlan_features.
We can add step (5) which is to convert the use of legacy_* stuff and use the
newer way only.
Mahesh Bandewar (20):
net-core: extending (hw_/wanted_/vlan_)features fields to a bitmap.
net-ipv4: extending (hw_/wanted_/vlan_)features fields to a bitmap.
net-ipv6: extending (hw_/wanted_/vlan_)features fields to a bitmap.
net-vlan: extending (hw_/wanted_/vlan_)features fields to a bitmap.
net-bridge: extending (hw_/wanted_/vlan_)features fields to a bitmap.
net-decnet: extending (hw_/wanted_/vlan_)features fields to a bitmap.
net-dsa: extending (hw_/wanted_/vlan_)features fields to a bitmap.
net-l2tp: extending (hw_/wanted_/vlan_)features fields to a bitmap.
net-phonet: extending (hw_/wanted_/vlan_)features fields to a bitmap.
net-sctp: extending (hw_/wanted_/vlan_)features fields to a bitmap.
net-wireless: extending (hw_/wanted_/vlan_)features fields to a
bitmap.
loopback: extending (hw_/wanted_/vlan_)features fields to a bitmap.
veth: extending (hw_/wanted_/vlan_)features fields to a bitmap.
jme: extending (hw_/wanted_/vlan_)features fields to a bitmap.
sungem: extending (hw_/wanted_/vlan_)features fields to a bitmap.
sunhme: extending (hw_/wanted_/vlan_)features fields to a bitmap.
usb-smsc75xx: extending (hw_/wanted_/vlan_)features fields to a
bitmap.
usb-smsc95xx: extending (hw_/wanted_/vlan_)features fields to a
bitmap.
virtio_net: extending (hw_/wanted_/vlan_)features fields to a bitmap.
xen: extending (hw_/wanted_/vlan_)features fields to a bitmap.
drivers/net/jme.c | 12 ++--
drivers/net/loopback.c | 4 +-
drivers/net/sungem.c | 7 +-
drivers/net/sunhme.c | 8 +-
drivers/net/usb/smsc75xx.c | 12 ++--
drivers/net/usb/smsc95xx.c | 12 ++--
drivers/net/veth.c | 6 +-
drivers/net/virtio_net.c | 21 ++++---
drivers/net/xen-netfront.c | 8 +-
include/linux/if_vlan.h | 4 +-
include/linux/netdevice.h | 110 +++++++++++++++++++++++++-----------
net/8021q/vlan.c | 12 ++--
net/8021q/vlan_dev.c | 9 ++-
net/bridge/br_device.c | 2 +-
net/bridge/br_if.c | 4 +-
net/core/dev.c | 51 +++++++++--------
net/core/ethtool.c | 97 ++++++++++++++++----------------
net/core/net-sysfs.c | 4 +-
net/core/sock.c | 2 +-
net/dccp/ipv6.c | 2 +-
net/decnet/af_decnet.c | 2 +-
net/decnet/dn_nsp_out.c | 2 +-
net/dsa/slave.c | 4 +-
net/ipv4/ip_gre.c | 6 +-
net/ipv4/ip_output.c | 12 ++--
net/ipv4/ipip.c | 4 +-
net/ipv4/ipmr.c | 2 +-
net/ipv4/netfilter/nf_nat_helper.c | 2 +-
net/ipv6/ip6_output.c | 6 +-
net/ipv6/ip6_tunnel.c | 2 +-
net/ipv6/ip6mr.c | 2 +-
net/ipv6/sit.c | 4 +-
net/l2tp/l2tp_core.c | 2 +-
net/phonet/pep-gprs.c | 2 +-
net/sctp/output.c | 4 +-
net/wireless/core.c | 10 ++--
36 files changed, 251 insertions(+), 202 deletions(-)
--
1.7.3.1
next reply other threads:[~2011-04-06 0:44 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-06 0:44 Mahesh Bandewar [this message]
2011-04-06 0:44 ` [PATCH 01/20] net-core: extending (hw_/wanted_/vlan_)features fields to a bitmap 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 ` [PATCH 01/20] net-core: " Ben Hutchings
2011-04-06 1:35 ` 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=1302050665-10460-1-git-send-email-maheshb@google.com \
--to=maheshb@google.com \
--cc=davem@davemloft.net \
--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 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).