Re: [net] bpf, xdp, i40e: fix i40e_build_skb skb reserve and truesize

2018-06-19 Thread David Miller
From: Jeff Kirsher Date: Tue, 19 Jun 2018 14:33:54 -0700 > From: Daniel Borkmann > > Using skb_reserve(skb, I40E_SKB_PAD + (xdp->data - xdp->data_hard_start)) > is clearly wrong since I40E_SKB_PAD already points to the offset where > the original xdp->data was sitting since xdp->data_hard_start

[net] bpf, xdp, i40e: fix i40e_build_skb skb reserve and truesize

2018-06-19 Thread Jeff Kirsher
From: Daniel Borkmann Using skb_reserve(skb, I40E_SKB_PAD + (xdp->data - xdp->data_hard_start)) is clearly wrong since I40E_SKB_PAD already points to the offset where the original xdp->data was sitting since xdp->data_hard_start is defined as xdp->data - i40e_rx_offset(rx_ring) where latter offse