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

2021-02-22 Thread Jesper Dangaard Brouer
On Sun, 21 Feb 2021 21:09:54 +0100 Björn Töpel wrote: > 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 ei

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

2021-02-21 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