All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
To: netdev@vger.kernel.org
Cc: Ben Hutchings <bhutchings@solarflare.com>
Subject: [PATCH v2 00/16] net: Unified offload configuration
Date: Sat, 22 Jan 2011 23:14:12 +0100 (CET)	[thread overview]
Message-ID: <cover.1295734270.git.mirq-linux@rere.qmqm.pl> (raw)

Here's a second version of the ethtool unification patch series.

What's in this set?
 1..3:
	cleanup patches (other patches depend on those)
 4:
	the patch - implement unified ethtool setting ops
 5..6:
	implement interoperation between old and new ethtool ops
 7:
	include RX checksum in features and plug it into new framework
 8..11:
	convert software devices to new framework
 12..16:
	examples of driver conversions to new framework
	(I love removing redundant code ;)

What is it good for?
 - unifies driver behaviour wrt hardware offloads
 - removes a lot of boilerplate code from drivers
 - allows better fine-grained control over used offloads

This is compile tested only (x86 allyesconfig). I'll get to real testing
after I get matching ethtool userspace part written. I would like the core
code (ie. not necessarily including driver conversions) to be ready before
next merge window, so that driver maintainers could have something solid
to work with.

Best Regards,
Michał Mirosław

v1: http://marc.info/?l=linux-netdev&m=129245188832643&w=3

Changes from v1:
 - split structures for GFEATURES/SFEATURES
 - naming of feature bits using GSTRINGS ETH_SS_FEATURES
 - strict checking of bits used in SFEATURES call
 - more comments and kernel-doc
 - rebased to net-next after 2.6.37

---

Michał Mirosław (16):
  net: Move check of checksum features to netdev_fix_features()
  net: change netdev->features to u32
  net: reduce and unify printk level in netdev_fix_features()
  net: Introduce new feature setting ops
  net: ethtool: use ndo_fix_features for offload setting
  net: use ndo_fix_features for ethtool_ops->set_flags
  net: introduce NETIF_F_RXCSUM
  loopback: convert to hw_features
  bridge: convert br_features_recompute() to ndo_fix_features
  vlan: convert VLAN devices to use ndo_fix_features()
  bonding: convert to ndo_fix_features
  jme: convert offload constraints to ndo_fix_features
  virtio_net: convert to ndo_fix_features
  Intel net drivers: convert to ndo_fix_features
  veth: convert to hw_features
  skge: convert to hw_features

 drivers/net/bnx2.c                 |    2 +-
 drivers/net/bonding/bond_main.c    |   45 +++--
 drivers/net/e1000/e1000_ethtool.c  |   69 ------
 drivers/net/e1000/e1000_main.c     |   30 ++-
 drivers/net/e1000e/ethtool.c       |   62 -----
 drivers/net/e1000e/netdev.c        |   30 ++-
 drivers/net/igb/igb_ethtool.c      |   67 -----
 drivers/net/igb/igb_main.c         |   33 ++-
 drivers/net/igbvf/ethtool.c        |   57 -----
 drivers/net/igbvf/netdev.c         |   25 ++-
 drivers/net/ixgb/ixgb.h            |    2 +
 drivers/net/ixgb/ixgb_ethtool.c    |   59 +-----
 drivers/net/ixgb/ixgb_main.c       |   31 ++-
 drivers/net/ixgbe/ixgbe_ethtool.c  |   65 -----
 drivers/net/ixgbe/ixgbe_main.c     |   31 ++-
 drivers/net/ixgbevf/ethtool.c      |   46 ----
 drivers/net/ixgbevf/ixgbevf_main.c |   26 ++-
 drivers/net/jme.c                  |   77 ++-----
 drivers/net/jme.h                  |    2 -
 drivers/net/loopback.c             |    9 +-
 drivers/net/myri10ge/myri10ge.c    |    4 +-
 drivers/net/sfc/ethtool.c          |    4 +-
 drivers/net/sfc/net_driver.h       |    2 +-
 drivers/net/skge.c                 |   53 +----
 drivers/net/skge.h                 |    1 -
 drivers/net/tun.c                  |    2 +-
 drivers/net/veth.c                 |   45 +---
 drivers/net/virtio_net.c           |   46 ++--
 include/linux/ethtool.h            |   87 +++++++-
 include/linux/netdevice.h          |   65 ++++-
 include/linux/skbuff.h             |    2 +-
 include/net/protocol.h             |    4 +-
 include/net/tcp.h                  |    2 +-
 include/net/udp.h                  |    2 +-
 net/8021q/vlan.c                   |    5 +-
 net/8021q/vlan_dev.c               |   50 +---
 net/bridge/br_device.c             |   56 +----
 net/bridge/br_if.c                 |   16 +-
 net/bridge/br_notify.c             |    2 +-
 net/bridge/br_private.h            |    3 +-
 net/core/dev.c                     |  114 ++++++---
 net/core/ethtool.c                 |  474 ++++++++++++++++++++++--------------
 net/core/net-sysfs.c               |    2 +-
 net/core/skbuff.c                  |    4 +-
 net/ipv4/af_inet.c                 |    2 +-
 net/ipv4/tcp.c                     |    2 +-
 net/ipv4/udp.c                     |    2 +-
 net/ipv6/af_inet6.c                |    2 +-
 net/ipv6/udp.c                     |    2 +-
 49 files changed, 810 insertions(+), 1013 deletions(-)

-- 
1.7.2.3


             reply	other threads:[~2011-01-22 22:14 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-22 22:14 Michał Mirosław [this message]
2011-01-22 22:14 ` [PATCH v2 03/16] net: reduce and unify printk level in netdev_fix_features() Michał Mirosław
2011-01-22 23:12   ` Joe Perches
2011-01-22 23:40     ` Michał Mirosław
2011-01-23 12:44       ` [PATCH] " Michał Mirosław
2011-01-22 23:48   ` [PATCH v2 03/16] " Michał Mirosław
2011-01-24 23:45   ` David Miller
2011-01-22 22:14 ` [PATCH v2 01/16] net: Move check of checksum features to netdev_fix_features() Michał Mirosław
2011-01-24 23:29   ` David Miller
2011-01-22 22:14 ` [PATCH v2 02/16] net: change netdev->features to u32 Michał Mirosław
2011-01-23 10:35   ` Eric Dumazet
2011-01-23 12:44     ` [PATCH] " Michał Mirosław
2011-01-24 23:30   ` [PATCH v2 02/16] " David Miller
2011-01-25 11:07     ` Michał Mirosław
2011-01-25 20:37       ` David Miller
2011-01-22 22:14 ` [PATCH v2 08/16] loopback: convert to hw_features Michał Mirosław
2011-01-22 22:14 ` [PATCH v2 12/16] jme: convert offload constraints to ndo_fix_features Michał Mirosław
2011-01-22 22:14 ` [PATCH v2 05/16] net: ethtool: use ndo_fix_features for offload setting Michał Mirosław
2011-01-22 22:14 ` [PATCH v2 11/16] bonding: convert to ndo_fix_features Michał Mirosław
2011-01-22 22:14 ` [PATCH v2 06/16] net: use ndo_fix_features for ethtool_ops->set_flags Michał Mirosław
2011-01-22 22:14 ` [PATCH v2 10/16] vlan: convert VLAN devices to use ndo_fix_features() Michał Mirosław
2011-01-22 22:14 ` [PATCH v2 09/16] bridge: convert br_features_recompute() to ndo_fix_features Michał Mirosław
2011-01-22 22:14 ` [PATCH v2 04/16] net: Introduce new feature setting ops Michał Mirosław
2011-01-24 23:51   ` David Miller
2011-01-25  1:26     ` Ben Hutchings
2011-01-22 22:14 ` [PATCH v2 07/16] net: introduce NETIF_F_RXCSUM Michał Mirosław
2011-01-22 22:14 ` [PATCH v2 13/16] virtio_net: convert to ndo_fix_features Michał Mirosław
2011-01-22 22:14 ` [PATCH v2 15/16] veth: convert to hw_features Michał Mirosław
2011-01-22 22:14 ` [PATCH v2 16/16] skge: " Michał Mirosław
2011-01-31 16:45   ` Stephen Hemminger
2011-01-31 21:53     ` Michał Mirosław
2011-01-31 22:40       ` Michał Mirosław
2011-01-31 23:08       ` Michał Mirosław
2011-01-22 22:14 ` [PATCH v2 14/16] Intel net drivers: convert to ndo_fix_features Michał Mirosław
2011-01-24  7:06   ` Jeff Kirsher
2011-01-26  9:47   ` Jeff Kirsher
2011-04-07 12:51     ` Michał Mirosław
2011-04-07 15:00       ` Jeff Kirsher

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=cover.1295734270.git.mirq-linux@rere.qmqm.pl \
    --to=mirq-linux@rere.qmqm.pl \
    --cc=bhutchings@solarflare.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.