On 4/12/17 8:08 PM, David Miller wrote: > From: David Ahern <dsa@xxxxxxxxxxxxxxxxxxx> > Date: Wed, 12 Apr 2017 13:54:20 -0600 > >> packet passed to xdp seems to be messed up > Ok, the problem is that skb->mac_len isn't set properly at this point. > That doesn't happen until __netif_receive_skb_core(). > > I'm also not setting xdp.data_hard_start properly. > > It should work better with this small diff: it does.