Re: [PATCH v2 net-next 0/2] bpf: allow eBPF access skb fields

From: David Miller
Date: Sun Mar 15 2015 - 22:03:37 EST


From: Alexei Starovoitov <ast@xxxxxxxxxxxx>
Date: Fri, 13 Mar 2015 11:57:41 -0700

> Hi All,
>
> V1->V2:
> - refactored field access converter into common helper convert_skb_access()
> used in both classic and extended BPF
> - added missing build_bug_on for field 'len'
> - added comment to uapi/linux/bpf.h as suggested by Daniel
> - dropped exposing 'ifindex' field for now
>
> classic BPF has a way to access skb fields, whereas extended BPF didn't.
> This patch introduces this ability.

I've applied this series.

I guess you guys can argue forever where the SKB offset validation
checks should be, and if you decide to do things differently than
it is done in this series just send me a followup patch.

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/