Thread (15 messages) 15 messages, 4 authors, 2019-02-14

Re: [PATCH bpf-next v11 0/7] bpf: add BPF_LWT_ENCAP_IP option to bpf_lwt_push_encap

From: Alexei Starovoitov <hidden>
Date: 2019-02-14 02:39:23

On Wed, Feb 13, 2019 at 05:46:26PM -0700, David Ahern wrote:
On 2/13/19 12:53 PM, Peter Oskolkov wrote:
quoted
This patchset implements BPF_LWT_ENCAP_IP mode in bpf_lwt_push_encap
BPF helper. It enables BPF programs (specifically, BPF_PROG_TYPE_LWT_IN
and BPF_PROG_TYPE_LWT_XMIT prog types) to add IP encapsulation headers
to packets (e.g. IP/GRE, GUE, IPIP).

This is useful when thousands of different short-lived flows should be
encapped, each with different and dynamically determined destination.
Although lwtunnels can be used in some of these scenarios, the ability
to dynamically generate encap headers adds more flexibility, e.g.
when routing depends on the state of the host (reflected in global bpf
maps).

For the set:
Reviewed-by: David Ahern <redacted>
Applied. Thanks everyone!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help