Re: [RFC PATCH v4 bpf-next 05/12] bpf: tcp: Add bpf_skops_established()

2020-08-20 Thread Martin KaFai Lau
On Mon, Aug 03, 2020 at 06:28:04PM -0700, John Fastabend wrote: > Martin KaFai Lau wrote: > > In tcp_init_transfer(), it currently calls the bpf prog to give it a > > chance to handle the just "ESTABLISHED" event (e.g. do setsockopt > > on the newly established sk). Right now, it is done by callin

RE: [RFC PATCH v4 bpf-next 05/12] bpf: tcp: Add bpf_skops_established()

2020-08-03 Thread John Fastabend
Martin KaFai Lau wrote: > In tcp_init_transfer(), it currently calls the bpf prog to give it a > chance to handle the just "ESTABLISHED" event (e.g. do setsockopt > on the newly established sk). Right now, it is done by calling the > general purpose tcp_call_bpf(). > > In the later patch, it also

[RFC PATCH v4 bpf-next 05/12] bpf: tcp: Add bpf_skops_established()

2020-08-03 Thread Martin KaFai Lau
In tcp_init_transfer(), it currently calls the bpf prog to give it a chance to handle the just "ESTABLISHED" event (e.g. do setsockopt on the newly established sk). Right now, it is done by calling the general purpose tcp_call_bpf(). In the later patch, it also needs to pass the just-received skb