Skip to content

net: Unified offload configuration

Michał Mirosław netdev 6 versions – Applied

Status from this message: Applied to net-next-2.6, please send any bug fixes relative to this.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest9 patches 6 repliesApplied
  2. v59 patches 4 repliesSuperseded
  3. v45 patches 19 repliesApplied
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v35 patches6 repliesSuperseded
v216 patches19 repliesApplied
v1 RFC12 patches12 repliesSuperseded

Changes in v6 from the cover letter

- register_netdevice(): avoid warning on GSO for non-SG capable devices
- rebased on current net-next (introduction of ndo_add/del_slave)

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/9ethtool: move EXPORT_SYMBOL(ethtool_op_set_tx_csum) to correct placenet/core/ethtool.c+1 -10 replies
2/9ethtool: enable GSO and GRO by defaultinclude/linux/netdevice.h net/core/dev.c+17 -40 replies
3/9ethtool: factorize ethtool_get_strings() and ethtool_get_sset_count()net/core/ethtool.c+23 -120 replies
4/9ethtool: factorize get/set_one_featureinclude/linux/netdevice.h net/core/ethtool.c+138 -1420 replies
5/9net: Introduce new feature setting opsinclude/linux/ethtool.h include/linux/netdevice.h net/core/dev.c +1 more+283 -100 replies
6/9net: ethtool: use ndo_fix_features for offload settingnet/core/ethtool.c+32 -130 replies
7/9net: use ndo_fix_features for ethtool_ops->set_flagsnet/core/ethtool.c+29 -20 replies
8/9net: introduce NETIF_F_RXCSUMinclude/linux/ethtool.h include/linux/netdevice.h net/core/ethtool.c+27 -260 replies
9/9loopback: convert to hw_featuresdrivers/net/loopback.c+4 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 0/9] net: Unified offload configuration

Here's a v6 of the ethtool unification patch series.

What's in it?
1..4:
cleanups for the core patches
5:
the patch - implement unified ethtool setting ops
6..7:
implement interoperation between old and new ethtool ops
8:
include RX checksum in features and plug it into new framework
9:
convert loopback device to new framework

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 version is not tested, yet.

Best Regards,
Michał Mirosław

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

Changes from v5:
- register_netdevice(): avoid warning on GSO for non-SG capable devices
- rebased on current net-next (introduction of ndo_add/del_slave)

Changes from v4:
- more split cleanups
- fix error return for ETHTOOL_SFLAGS
- fix ETHTOOL_G* compatibility for not converted drivers

Changes from v3:
- fixed kernel-doc and other comments
- added HIGHDMA to never-changeable features
- changed GFEATURES .size interpretation
- changed feature strings
- change __ethtool_set_flags() to reject invalid changes

Changes from v2:
- rebase to net-next after merging v2 leading patches
- fix missing comma in feature name table
- force NETIF_F_SOFT_FEATURES in hw_features for simpler code (fixes a bug that disallowed changing GSO and GRO state)

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 (9):
ethtool: move EXPORT_SYMBOL(ethtool_op_set_tx_csum) to correct place
ethtool: enable GSO and GRO by default
ethtool: factorize ethtool_get_strings() and ethtool_get_sset_count()
ethtool: factorize get/set_one_feature
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

 drivers/net/loopback.c    |    9 +-
 include/linux/ethtool.h   |   86 ++++++++-
 include/linux/netdevice.h |   49 ++++-
 net/core/dev.c            |   52 ++++-
 net/core/ethtool.c        |  527 +++++++++++++++++++++++++++++---------------
 5 files changed, 531 insertions(+), 192 deletions(-)
Signature · 1 line
1.7.2.3