test_bpf: allow tests to specify an skb fragment.
authorNicolas Schichan <nschichan@freebox.fr>
Tue, 4 Aug 2015 13:19:08 +0000 (15:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Aug 2015 05:02:31 +0000 (22:02 -0700)
commitbac142acb90e952899cb8204fad12ef7d1e42f94
tree5f90114b084df8154193af7a7834bba12e59f291
parente34684f88efd9cf29ad5ff4750a0f5586383141f
test_bpf: allow tests to specify an skb fragment.

This introduce a new test->aux flag (FLAG_SKB_FRAG) to tell the
populate_skb() function to add a fragment to the test skb containing
the data specified in test->frag_data).

Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_bpf.c