Re: [PATCH bpf-next v5 2/2] bpf, xdp: restructure redirect actions

2021-03-05 Thread Daniel Borkmann
On 3/5/21 6:11 PM, Björn Töpel wrote: On 2021-03-05 16:44, Daniel Borkmann wrote: On 2/27/21 1:21 PM, Björn Töpel wrote: [...] diff --git a/include/linux/filter.h b/include/linux/filter.h index 008691fd3b58..a7752badc2ec 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -646,1

Re: [PATCH bpf-next v5 2/2] bpf, xdp: restructure redirect actions

2021-03-05 Thread Björn Töpel
On 2021-03-05 16:44, Daniel Borkmann wrote: On 2/27/21 1:21 PM, Björn Töpel wrote: [...] diff --git a/include/linux/filter.h b/include/linux/filter.h index 008691fd3b58..a7752badc2ec 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -646,11 +646,20 @@ struct bpf_redirect_info {

Re: [PATCH bpf-next v5 2/2] bpf, xdp: restructure redirect actions

2021-03-05 Thread Daniel Borkmann
On 2/27/21 1:21 PM, Björn Töpel wrote: [...] diff --git a/include/linux/filter.h b/include/linux/filter.h index 008691fd3b58..a7752badc2ec 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -646,11 +646,20 @@ struct bpf_redirect_info { u32 flags; u32 tgt_index;

[PATCH bpf-next v5 2/2] bpf, xdp: restructure redirect actions

2021-02-27 Thread Björn Töpel
From: Björn Töpel The XDP_REDIRECT implementations for maps and non-maps are fairly similar, but obviously need to take different code paths depending on if the target is using a map or not. Today, the redirect targets for XDP either uses a map, or is based on ifindex. Here, an explicit redirect