Re: [PATCH bpf] xdp: linearize skb in netif_receive_generic_xdp()

2017-12-15 Thread Daniel Borkmann
On 12/15/2017 02:17 AM, Song Liu wrote: > In netif_receive_generic_xdp(), it is necessary to linearize all > nonlinear skb. However, in current implementation, skb with > troom <= 0 are not linearized. This patch fixes this by calling > skb_linearize() for all nonlinear skb. > > Fixes: de8f3a83b0a

[PATCH bpf] xdp: linearize skb in netif_receive_generic_xdp()

2017-12-14 Thread Song Liu
In netif_receive_generic_xdp(), it is necessary to linearize all nonlinear skb. However, in current implementation, skb with troom <= 0 are not linearized. This patch fixes this by calling skb_linearize() for all nonlinear skb. Fixes: de8f3a83b0a0 ("bpf: add meta pointer for direct access") Signed