Skip to content

net: sched: introduce em_ipt ematch

Eyal Birger netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

Remove skb push/pull and limit functionality to ingress

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: sched: ematch: pass protocol to ematch 'change()' handlersinclude/net/pkt_cls.h net/sched/em_canid.c net/sched/em_ipset.c +4 more+11 -100 replies
2/2net: sched: add em_ipt ematch for calling xtables matchesinclude/uapi/linux/pkt_cls.h include/uapi/linux/tc_ematch/tc_em_ipt.h net/sched/Kconfig +2 more+276 -14 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchPablo Neira Ayuso
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next,v2 0/2] net: sched: introduce em_ipt ematch

From: Eyal Birger <[email protected]>

The following patchset introduces a new tc ematch for matching using netfilter matches.

This allows early classification as well as mirroning/redirecting traffic based on logic implemented in netfilter extensions.

Example use case is classification based on the incoming IPSec policy used during decpsulation using the 'policy' iptables extension (xt_policy).

This patchset is an enhancement of a former series ([1]) which allowed only policy matching following a suggestion by Pablo Neira Ayuso ([2]).

[1] https://patchwork.ozlabs.org/cover/859887/
[2] https://patchwork.ozlabs.org/patch/859888/

v2:
Remove skb push/pull and limit functionality to ingress

Eyal Birger (2):
net: sched: ematch: pass protocol to ematch 'change()' handlers
net: sched: add em_ipt ematch for calling xtables matches

 include/net/pkt_cls.h                    |   2 +-
 include/uapi/linux/pkt_cls.h             |   3 +-
 include/uapi/linux/tc_ematch/tc_em_ipt.h |  19 +++
 net/sched/Kconfig                        |  10 ++
 net/sched/Makefile                       |   1 +
 net/sched/em_canid.c                     |   4 +-
 net/sched/em_ipset.c                     |   4 +-
 net/sched/em_ipt.c                       | 244 +++++++++++++++++++++++++++++++
 net/sched/em_meta.c                      |   2 +-
 net/sched/em_nbyte.c                     |   4 +-
 net/sched/em_text.c                      |   2 +-
 net/sched/ematch.c                       |   3 +-
 12 files changed, 287 insertions(+), 11 deletions(-)
 create mode 100644 include/uapi/linux/tc_ematch/tc_em_ipt.h
 create mode 100644 net/sched/em_ipt.c
Signature · 1 line
2.7.4