Re: [net-next V7 PATCH 3/5] bpf: cpumap xdp_buff to skb conversion and allocation

2017-10-13 Thread Jesper Dangaard Brouer
On Thu, 12 Oct 2017 22:13:43 +0100 Edward Cree wrote: > On 12/10/17 13:26, Jesper Dangaard Brouer wrote: > > This patch makes cpumap functional, by adding SKB allocation and > > invoking the network stack on the dequeuing CPU. > > > > For constructing the SKB on the remote CPU, the xdp_buff in co

Re: [net-next V7 PATCH 3/5] bpf: cpumap xdp_buff to skb conversion and allocation

2017-10-12 Thread Edward Cree
On 12/10/17 13:26, Jesper Dangaard Brouer wrote: > This patch makes cpumap functional, by adding SKB allocation and > invoking the network stack on the dequeuing CPU. > > For constructing the SKB on the remote CPU, the xdp_buff in converted > into a struct xdp_pkt, and it mapped into the top headro

[net-next V7 PATCH 3/5] bpf: cpumap xdp_buff to skb conversion and allocation

2017-10-12 Thread Jesper Dangaard Brouer
This patch makes cpumap functional, by adding SKB allocation and invoking the network stack on the dequeuing CPU. For constructing the SKB on the remote CPU, the xdp_buff in converted into a struct xdp_pkt, and it mapped into the top headroom of the packet, to avoid allocating separate mem. For n