Re: Design for sk_lookup helper function in context of sk_lookup hook

2021-03-22 Thread Martin KaFai Lau
On Fri, Mar 19, 2021 at 06:05:20PM +0100, Shanti Lombard née Bouchez-Mongardé wrote: > Le 19/03/2021 à 17:55, Martin KaFai Lau a écrit : > > On Wed, Mar 17, 2021 at 10:04:18AM +0100, Shanti Lombard née > > Bouchez-Mongardé wrote: > > > Q1: How do we prevent socket lookup from triggering BPF sk_lo

Re: Design for sk_lookup helper function in context of sk_lookup hook

2021-03-19 Thread Shanti Lombard née Bouchez-Mongardé
Le 19/03/2021 à 17:55, Martin KaFai Lau a écrit : On Wed, Mar 17, 2021 at 10:04:18AM +0100, Shanti Lombard née Bouchez-Mongardé wrote: Q1: How do we prevent socket lookup from triggering BPF sk_lookup causing a loop? The bpf_sk_lookup_(tcp|udp) will be called from the BPF_PROG_TYPE_SK_LOOKUP

Re: Design for sk_lookup helper function in context of sk_lookup hook

2021-03-19 Thread Martin KaFai Lau
On Wed, Mar 17, 2021 at 10:04:18AM +0100, Shanti Lombard née Bouchez-Mongardé wrote: > Hello everyone, > > Background discussion: > https://lore.kernel.org/bpf/CAADnVQJnX-+9u--px_VnhrMTPB=o9y0lh9t7rjbqzflchbu...@mail.gmail.com/ > > In a previous e-mail I was explaining that sk_lookup BPF progra