From: Mathieu Xhonneux <m.xhonneux@gmail.com>
To: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Cc: David Miller <davem@davemloft.net>,
netdev@vger.kernel.org, David Lebrun <dlebrun@google.com>,
Daniel Borkmann <daniel@iogearbox.net>
Subject: Re: [PATCH net-next v2 4/5] ipv6: sr: Add seg6local action End.BPF
Date: Mon, 30 Apr 2018 22:06:18 +0200 [thread overview]
Message-ID: <CAKSCvkTLFVRP0dxEE34tnG4W5kQKBO-m5710-ezXHqPGFP6_ag@mail.gmail.com> (raw)
In-Reply-To: <20180428000141.f63iw36nfr3bbz2r@ast-mbp>
2018-04-28 2:01 GMT+02:00 Alexei Starovoitov <alexei.starovoitov@gmail.com>:
>
> On Fri, Apr 27, 2018 at 10:59:19AM -0400, David Miller wrote:
> > From: Mathieu Xhonneux <m.xhonneux@gmail.com>
> > Date: Tue, 24 Apr 2018 18:44:15 +0100
> >
> > > This patch adds the End.BPF action to the LWT seg6local infrastructure.
> > > This action works like any other seg6local End action, meaning that an IPv6
> > > header with SRH is needed, whose DA has to be equal to the SID of the
> > > action. It will also advance the SRH to the next segment, the BPF program
> > > does not have to take care of this.
> >
> > I'd like to see some BPF developers review this change.
> >
> > But on my side I wonder if, instead of validating the whole thing afterwards,
> > we should make the helpers accessible by the eBPF program validate the changes
> > as they are made.
>
> Looking at the code I don't think it's possible to keep it valid all the time
> while building, so seg6_validate_srh() after the program run seems necessary.
Indeed, e.g. to add a TLV in the SRH one needs to call
bpf_lwt_seg6_adjust_srh (to add some room for the TLV), then
bpf_lwt_seg6_store_bytes() (to fill the space with the TLV). Between
those two calls, the SRH is in an invalid state.
>
>
> I think the whole set should be targeting bpf-next tree.
> Please fix kbuild errors, rebase and document new helper in man-page style.
> Things like:
> + test_btf_haskv.o test_btf_nokv.o test_lwt_seg6local.o
> +>>>>>>> selftests/bpf: test for seg6local End.BPF action
> should be fixed properly.
Oops, I didn't catch this one, thanks. I'll send a v3 towards bpf-next.
next prev parent reply other threads:[~2018-04-30 20:06 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-24 17:44 [PATCH net-next v2 0/5] ipv6: sr: introduce seg6local End.BPF action Mathieu Xhonneux
2018-04-24 17:44 ` [PATCH net-next v2 1/5] ipv6: sr: export function lookup_nexthop Mathieu Xhonneux
2018-04-24 17:44 ` [PATCH net-next v2 2/5] bpf: Add IPv6 Segment Routing helpers Mathieu Xhonneux
2018-04-26 3:54 ` kbuild test robot
2018-04-26 6:41 ` kbuild test robot
2018-04-26 13:45 ` [RFC PATCH] bpf: bpf_push_seg6_encap() can be static kbuild test robot
2018-04-26 13:45 ` [PATCH net-next v2 2/5] bpf: Add IPv6 Segment Routing helpers kbuild test robot
2018-04-24 17:44 ` [PATCH net-next v2 3/5] bpf: Split lwt inout verifier structures Mathieu Xhonneux
2018-04-26 15:29 ` kbuild test robot
2018-04-26 15:29 ` [RFC PATCH] bpf: lwt_out_verifier_ops can be static kbuild test robot
2018-04-24 17:44 ` [PATCH net-next v2 4/5] ipv6: sr: Add seg6local action End.BPF Mathieu Xhonneux
2018-04-27 14:59 ` David Miller
2018-04-28 0:01 ` Alexei Starovoitov
2018-04-30 20:06 ` Mathieu Xhonneux [this message]
2018-04-24 17:44 ` [PATCH net-next v2 5/5] selftests/bpf: test for seg6local End.BPF action Mathieu Xhonneux
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=CAKSCvkTLFVRP0dxEE34tnG4W5kQKBO-m5710-ezXHqPGFP6_ag@mail.gmail.com \
--to=m.xhonneux@gmail.com \
--cc=alexei.starovoitov@gmail.com \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=dlebrun@google.com \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).