Re: [PATCH bpf-next,v2 1/2] bpf: add helper for getting xfrm states

2018-04-24 Thread Daniel Borkmann
On 04/23/2018 02:34 AM, Alexei Starovoitov wrote: > On Fri, Apr 20, 2018 at 06:43:56AM +0300, Eyal Birger wrote: >> On Wed, 18 Apr 2018 15:31:03 -0700 >> Alexei Starovoitov wrote: >>> On Thu, Apr 19, 2018 at 12:58:22AM +0300, Eyal Birger wrote: This commit introduces a helper which allows fet

Re: [PATCH bpf-next,v2 1/2] bpf: add helper for getting xfrm states

2018-04-22 Thread Alexei Starovoitov
On Fri, Apr 20, 2018 at 06:43:56AM +0300, Eyal Birger wrote: > Hi, > > On Wed, 18 Apr 2018 15:31:03 -0700 > Alexei Starovoitov wrote: > > > On Thu, Apr 19, 2018 at 12:58:22AM +0300, Eyal Birger wrote: > > > This commit introduces a helper which allows fetching xfrm state > > > parameters by eBPF

Re: [PATCH bpf-next,v2 1/2] bpf: add helper for getting xfrm states

2018-04-19 Thread Eyal Birger
Hi, On Wed, 18 Apr 2018 15:31:03 -0700 Alexei Starovoitov wrote: > On Thu, Apr 19, 2018 at 12:58:22AM +0300, Eyal Birger wrote: > > This commit introduces a helper which allows fetching xfrm state > > parameters by eBPF programs attached to TC. > > > > Prototype: > > bpf_skb_get_xfrm_state(skb,

Re: [PATCH bpf-next,v2 1/2] bpf: add helper for getting xfrm states

2018-04-18 Thread Alexei Starovoitov
On Thu, Apr 19, 2018 at 12:58:22AM +0300, Eyal Birger wrote: > This commit introduces a helper which allows fetching xfrm state > parameters by eBPF programs attached to TC. > > Prototype: > bpf_skb_get_xfrm_state(skb, index, xfrm_state, size, flags) > > skb: pointer to skb > index: the index in

[PATCH bpf-next,v2 1/2] bpf: add helper for getting xfrm states

2018-04-18 Thread Eyal Birger
This commit introduces a helper which allows fetching xfrm state parameters by eBPF programs attached to TC. Prototype: bpf_skb_get_xfrm_state(skb, index, xfrm_state, size, flags) skb: pointer to skb index: the index in the skb xfrm_state secpath array xfrm_state: pointer to 'struct bpf_xfrm_stat