mbox series

[RFC,net-next,0/1] net: sched: Introduce act_ctinfo action

Message ID 20190409113315.64132-1-ldir@darbyshire-bryant.me.uk
Headers show
Series net: sched: Introduce act_ctinfo action | expand

Message

Kevin 'ldir' Darbyshire-Bryant April 9, 2019, 11:33 a.m. UTC
Hi Cong & everyone.

Another rename & some more tweaks.  I'm not sure quite what version
we're up to but on the basis of the name change (again) I'm assuming v1.

Changes:

Changed the netlink parameter passing to mostly indepedent
flags/structures to hopefully facilitate easier future extension of this
action/module.

Sanity checks on userspace passed parameters now return with -EINVAL
instead of silently nulling them out.

RCU'ified the action update based on structure seen in act_csum.  I hope
to $DEITY I've done that right :-)

Closer to perfection?

Kevin Darbyshire-Bryant (1):
  net: sched: Introduce act_ctinfo action

 include/net/tc_act/tc_ctinfo.h            |  24 ++
 include/uapi/linux/pkt_cls.h              |   1 +
 include/uapi/linux/tc_act/tc_ctinfo.h     |  33 ++
 net/sched/Kconfig                         |  13 +
 net/sched/Makefile                        |   1 +
 net/sched/act_ctinfo.c                    | 372 ++++++++++++++++++++++
 tools/testing/selftests/tc-testing/config |   1 +
 7 files changed, 445 insertions(+)
 create mode 100644 include/net/tc_act/tc_ctinfo.h
 create mode 100644 include/uapi/linux/tc_act/tc_ctinfo.h
 create mode 100644 net/sched/act_ctinfo.c