From: Eyal Birger <eyal.birger@gmail.com>
To: davem@davemloft.net, jhs@mojatatu.com, xiyou.wangcong@gmail.com,
netdev@vger.kernel.org, pablo@netfilter.org
Cc: shmulik@metanetworks.com, Eyal Birger <eyal@metanetworks.com>
Subject: [PATCH net-next,v2 0/2] net: sched: introduce em_ipt ematch
Date: Fri, 26 Jan 2018 18:48:51 +0200 [thread overview]
Message-ID: <1516985333-5156-1-git-send-email-eyal.birger@gmail.com> (raw)
From: Eyal Birger <eyal@metanetworks.com>
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
--
2.7.4
next reply other threads:[~2018-01-26 16:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-26 16:48 Eyal Birger [this message]
2018-01-26 16:48 ` [PATCH net-next,v2 1/2] net: sched: ematch: pass protocol to ematch 'change()' handlers Eyal Birger
2018-01-26 16:48 ` [PATCH net-next,v2 2/2] net: sched: add em_ipt ematch for calling xtables matches Eyal Birger
2018-01-26 18:50 ` Pablo Neira Ayuso
2018-01-26 19:57 ` Eyal Birger
2018-01-29 3:22 ` Cong Wang
2018-01-30 8:48 ` Eyal Birger
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=1516985333-5156-1-git-send-email-eyal.birger@gmail.com \
--to=eyal.birger@gmail.com \
--cc=davem@davemloft.net \
--cc=eyal@metanetworks.com \
--cc=jhs@mojatatu.com \
--cc=netdev@vger.kernel.org \
--cc=pablo@netfilter.org \
--cc=shmulik@metanetworks.com \
--cc=xiyou.wangcong@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).