]> 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)
commit911f70b4c6e48a892ee6016fe1cec4efed96c83b
tree5f90114b084df8154193af7a7834bba12e59f291
parent86fcce6ade05a046e5e94cb7defdf03cbb5d187b
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