Skip to content

: Conversion to new netlink API

Patrick McHardy netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6: Move EXPORT_SYMBOL next to exported symbolnet/sched/act_api.c net/sched/ematch.c net/sched/sch_api.c +2 more+22 -270 replies
2/6: mark classifier ops __read_mostlynet/sched/cls_api.c net/sched/cls_basic.c net/sched/cls_fw.c +3 more+6 -100 replies
3/6: Add nla_append()include/net/netlink.h net/netlink/attr.c+22 -00 replies
4/6: Convert packet schedulers from rtnetlink to new netlink APIinclude/net/gen_stats.h include/net/pkt_sched.h include/net/sch_generic.h +22 more+474 -4360 replies
5/6: Convert classifiers from rtnetlink to new netlink APIinclude/net/pkt_cls.h include/net/sch_generic.h net/sched/cls_api.c +9 more+290 -2820 replies
6/6: Convert actions from rtnetlink to new netlink APIinclude/net/act_api.h net/sched/act_api.c net/sched/act_gact.c +7 more+218 -2160 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [NET_SCHED 00/06]: Conversion to new netlink API

These patches convert the packet schedulers to the new netlink API. This will allow to use the new features like automatic attribute checking and gets rid of the largest rtnetlink.h user we still have. Unfortunately a gradual conversion is not really feasible, so the patches are quite large, but most of them has been generated automatically, so I'm pretty sure they are correct and didn't miss anything. Also included are some minor unrelated cleanups I had queued in the same tree.

Please apply, thanks.

 include/net/act_api.h      |    8 +-
 include/net/gen_stats.h    |    6 +-
 include/net/netlink.h      |    3 +
 include/net/pkt_cls.h      |   10 +-
 include/net/pkt_sched.h    |    2 +-
 include/net/sch_generic.h  |    8 +-
 net/core/gen_estimator.c   |    8 +-
 net/core/gen_stats.c       |    9 +-
 net/mac80211/wme.c         |   14 ++--
 net/netfilter/xt_RATEEST.c |    7 +-
 net/netlink/attr.c         |   19 ++++
 net/sched/act_api.c        |  221 ++++++++++++++++++++++----------------------
 net/sched/act_gact.c       |   28 +++---
 net/sched/act_ipt.c        |   46 +++++-----
 net/sched/act_mirred.c     |   18 ++--
 net/sched/act_nat.c        |   18 ++--
 net/sched/act_pedit.c      |   20 ++--
 net/sched/act_police.c     |   50 +++++-----
 net/sched/act_simple.c     |   24 +++---
 net/sched/cls_api.c        |   65 +++++++------
 net/sched/cls_basic.c      |   42 ++++----
 net/sched/cls_fw.c         |   57 ++++++------
 net/sched/cls_route.c      |   73 +++++++--------
 net/sched/cls_rsvp.h       |   48 +++++-----
 net/sched/cls_tcindex.c    |   69 +++++++-------
 net/sched/cls_u32.c        |   81 ++++++++--------
 net/sched/em_meta.c        |   56 ++++++------
 net/sched/em_text.c        |    9 +-
 net/sched/ematch.c         |   85 +++++++++---------
 net/sched/sch_api.c        |   96 +++++++++++---------
 net/sched/sch_atm.c        |   48 +++++-----
 net/sched/sch_cbq.c        |  156 ++++++++++++++++----------------
 net/sched/sch_dsmark.c     |   85 ++++++++++-------
 net/sched/sch_fifo.c       |   13 +--
 net/sched/sch_generic.c    |   23 ++---
 net/sched/sch_gred.c       |   59 +++++++------
 net/sched/sch_hfsc.c       |   72 +++++++-------
 net/sched/sch_htb.c        |   68 +++++++-------
 net/sched/sch_ingress.c    |   14 ++--
 net/sched/sch_netem.c      |  100 ++++++++++----------
 net/sched/sch_prio.c       |   30 ++++---
 net/sched/sch_red.c        |   52 ++++++-----
 net/sched/sch_sfq.c        |   12 +-
 net/sched/sch_tbf.c        |   49 +++++-----
 net/sched/sch_teql.c       |    2 +-
 45 files changed, 1022 insertions(+), 961 deletions(-)

Patrick McHardy (6):
[NET_SCHED]: Move EXPORT_SYMBOL next to exported symbol [NET_SCHED]: mark classifier ops __read_mostly
[NETLINK]: Add nla_append()
[NET_SCHED]: Convert packet schedulers from rtnetlink to new netlink API [NET_SCHED]: Convert classifiers from rtnetlink to new netlink API [NET_SCHED]: Convert actions from rtnetlink to new netlink API