Re: [RFC PATCH] xdp: separate struct xdp_prog as container for bpf_prog

2016-09-20 Thread Tom Herbert
On Tue, Sep 20, 2016 at 12:55 PM, Jesper Dangaard Brouer wrote: > Currently the XDP program is simply a bpf_prog pointer. While it > is good for simplicity, it is limiting extendability for upcoming > features. > Hi Jesper, Can you take a look (or try) the RFC patches I just posted to generalize

Re: [RFC PATCH] xdp: separate struct xdp_prog as container for bpf_prog

2016-09-20 Thread Daniel Borkmann
On 09/20/2016 09:55 PM, Jesper Dangaard Brouer wrote: Currently the XDP program is simply a bpf_prog pointer. While it is good for simplicity, it is limiting extendability for upcoming features. Introducing a new struct xdp_prog, that can carry information related to the XDP program. Notice th

[RFC PATCH] xdp: separate struct xdp_prog as container for bpf_prog

2016-09-20 Thread Jesper Dangaard Brouer
Currently the XDP program is simply a bpf_prog pointer. While it is good for simplicity, it is limiting extendability for upcoming features. Introducing a new struct xdp_prog, that can carry information related to the XDP program. Notice this approach does not affect performance (tested and benc