]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitff2a003ef684350794ce824679bd6cf6e03a89f4
tree5f90114b084df8154193af7a7834bba12e59f291
parentdd6cb0c2af1df4f43275e6572513c0a099559033
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