]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sample/bpf: fix erspan metadata
authorWilliam Tu <u9012063@gmail.com>
Mon, 5 Feb 2018 21:35:36 +0000 (13:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Feb 2018 16:32:49 +0000 (11:32 -0500)
commit9c33ca4317c81d9a5d030bbc60aeb2d16edf172b
tree9f6a56f4d4d7226b735237e1e99510d2ac194b75
parent39f57f6799cdd437277122d4cd1c470c08f527c0
sample/bpf: fix erspan metadata

The commit c69de58ba84f ("net: erspan: use bitfield instead of
mask and offset") changes the erspan header to use bitfield, and
commit d350a823020e ("net: erspan: create erspan metadata uapi header")
creates a uapi header file.  The above two commit breaks the current
erspan test.  This patch fixes it by adapting the above two changes.

Fixes: ac80c2a165af ("samples/bpf: add erspan v2 sample code")
Fixes: ef88f89c830f ("samples/bpf: extend test_tunnel_bpf.sh with ERSPAN")
Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/tcbpf2_kern.c
samples/bpf/test_tunnel_bpf.sh