From: Daniel Borkmann <daniel@iogearbox.net>
To: Pablo Neira Ayuso <pablo@netfilter.org>, netfilter-devel@vger.kernel.org
Cc: davem@davemloft.net, netdev@vger.kernel.org,
laforge@netfilter.org, fw@strlen.de,
alexei.starovoitov@gmail.com
Subject: Re: [PATCH RFC PoC 0/3] nftables meets bpf
Date: Mon, 19 Feb 2018 20:57:39 +0100 [thread overview]
Message-ID: <e54df7da-ecd9-d34e-2170-1a095c34b725@iogearbox.net> (raw)
In-Reply-To: <20180219163706.5388-1-pablo@netfilter.org>
On 02/19/2018 05:37 PM, Pablo Neira Ayuso wrote:
[...]
> * Simplified infrastructure: We don't need the ebpf verifier complexity
> either given we trust the code we generate from the kernel. We don't
> need any complex userspace tooling either, just libnftnl and nft
> userspace binaries.
>
> * Hardware offload: We can use this to offload rulesets to the only
> smartnic driver that we have in the tree that already implements bpf
> offload, hence, we can reuse this work already in place.
In addition Dave's points, regarding the above two, this will also only
work behind the verifier since NIC offloading piggy-backs on the verifier's
program analysis to prepare and generate a dev specific JITed BPF prog, so
it's not the same as normal host JITs (and there, the cBPF -> eBPF in kernel
migration adds a lot of headaches already due to different underlying
assumptions coming from the two flavors, even if both are eBPF insns in the
end), and given this, offloading will also only work for eBPF and not cBPF.
There's a lot more the verifier is doing internally, like performing various
different program rewrites from the context, for helpers (e.g. inlining),
and for internal insn mappings that are not exposed (e.g. in calls), so we
definitely need to go through it.
Thanks,
Daniel
next prev parent reply other threads:[~2018-02-19 19:57 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
2018-02-19 19:57 ` Daniel Borkmann [this message]
2018-02-20 10:58 ` [PATCH RFC PoC 0/3] nftables meets bpf 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=e54df7da-ecd9-d34e-2170-1a095c34b725@iogearbox.net \
--to=daniel@iogearbox.net \
--cc=alexei.starovoitov@gmail.com \
--cc=davem@davemloft.net \
--cc=fw@strlen.de \
--cc=laforge@netfilter.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.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;
as well as URLs for NNTP newsgroup(s).