From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Cc: David Miller <davem@davemloft.net>,
netfilter-devel@vger.kernel.org, netdev@vger.kernel.org,
laforge@netfilter.org, fw@strlen.de, daniel@iogearbox.net
Subject: Re: [PATCH RFC 3/3] netfilter: nf_tables: add BPF-based jit infrastructure
Date: Wed, 21 Feb 2018 12:48:51 +0100 [thread overview]
Message-ID: <20180221114851.b4vgjzehvl6jfwgw@salvia> (raw)
In-Reply-To: <20180221020137.o4vs2gy4utcue6nj@ast-mbp.dhcp.thefacebook.com>
Hi Alexei,
On Tue, Feb 20, 2018 at 06:01:39PM -0800, Alexei Starovoitov wrote:
> On Tue, Feb 20, 2018 at 11:53:55AM +0100, Pablo Neira Ayuso wrote:
> >
> > I'll explore how to generate eBPF code in the next patchset version.
>
> from the user space please...
OK, let's do that, from user space I see two things we can do to
integrate with eBPF:
1) Add a bpf chain type, that we can use to allow to attach eBPF
programs, it would look similar to tc cls_bpf. We mentioned this
idea in the past, it can open up existing netfilter hooks for
custom eBPF programs.
2) Use the usermode helper infrastructure that bpfilter PoC is
proposing to transparently pass the nft netlink batch to
userspace for eBPF jit. This would allow us to convert the
datapath to eBPF.
Regarding the usermode helper, just an idea, not sure your plans but
it's probably interesting to explore some sort of messaging-based
communication between kernel and the eBPF userspace infrastructure.
But that can be done later on, I understand all this is a PoC.
Thanks!
next prev parent reply other threads:[~2018-02-21 11:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-19 16:37 [PATCH RFC PoC 0/3] nftables meets bpf Pablo Neira Ayuso
2018-02-19 16:37 ` [PATCH RFC 1/3] netfilter: nf_tables: add infrastructure to provide intermediate representation Pablo Neira Ayuso
2018-02-19 16:37 ` [PATCH RFC 2/3] netfilter: add ast to target transformation Pablo Neira Ayuso
2018-02-19 16:37 ` [PATCH RFC 3/3] netfilter: nf_tables: add BPF-based jit infrastructure Pablo Neira Ayuso
2018-02-19 18:53 ` David Miller
2018-02-20 10:53 ` Pablo Neira Ayuso
2018-02-21 2:01 ` Alexei Starovoitov
2018-02-21 11:48 ` Pablo Neira Ayuso [this message]
2018-02-19 19:57 ` [PATCH RFC PoC 0/3] nftables meets bpf Daniel Borkmann
2018-02-20 10:58 ` Pablo Neira Ayuso
2018-02-20 15:03 ` Daniel Borkmann
2018-02-21 23:46 ` Jakub Kicinski
2018-02-22 0:30 ` Florian Fainelli
2018-02-22 1:56 ` Jakub Kicinski
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=20180221114851.b4vgjzehvl6jfwgw@salvia \
--to=pablo@netfilter.org \
--cc=alexei.starovoitov@gmail.com \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=fw@strlen.de \
--cc=laforge@netfilter.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
/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