Re: [PATCH bpf-next RFC 1/3] bpf: move struct bpf_devmap_val out of UAPI

2020-05-29 Thread Jesper Dangaard Brouer
On Fri, 29 May 2020 10:06:25 -0600 David Ahern wrote: > On 5/29/20 9:59 AM, Jesper Dangaard Brouer wrote: > > @@ -60,6 +60,15 @@ struct xdp_dev_bulk_queue { > > unsigned int count; > > }; > > > > +/* DEVMAP values */ > > +struct bpf_devmap_val { > > + __u32 ifindex; /* device index */

Re: [PATCH bpf-next RFC 1/3] bpf: move struct bpf_devmap_val out of UAPI

2020-05-29 Thread David Ahern
On 5/29/20 9:59 AM, Jesper Dangaard Brouer wrote: > @@ -60,6 +60,15 @@ struct xdp_dev_bulk_queue { > unsigned int count; > }; > > +/* DEVMAP values */ > +struct bpf_devmap_val { > + __u32 ifindex; /* device index */ > + union { > + int fd; /* prog fd on map write *