bpf: Align packet data properly in program testing framework.
authorDavid Miller <davem@davemloft.net>
Tue, 2 May 2017 15:36:45 +0000 (11:36 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 May 2017 15:46:28 +0000 (11:46 -0400)
commit586f8525979ad9574bf61637fd58c98d5077f29d
tree6f6d73b367e877b7c4cc14d991ea659df5959480
parent78e5227237cae9172dd50c3ebb08d4fb31530676
bpf: Align packet data properly in program testing framework.

Make sure we apply NET_IP_ALIGN when reserving headroom for SKB
and XDP test runs, just like a real driver would.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
net/bpf/test_run.c