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

2018-04-18 Thread Eyal Birger
On Wed, 18 Apr 2018 22:59:27 +0200 Daniel Borkmann wrote: > On 04/17/2018 06:48 AM, 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 1/2] bpf: add helper for getting xfrm states

2018-04-18 Thread Daniel Borkmann
On 04/17/2018 06:48 AM, 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 the skb