]> git.baikalelectronics.ru Git - kernel.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)
commite250a4b8a962a3c09eddcaae0cf9f89d0781e0f7
tree9f6a56f4d4d7226b735237e1e99510d2ac194b75
parent3f845a02adabce434314eb5ad7527b86ad3a6793
sample/bpf: fix erspan metadata

The commit dbaf03ad2690 ("net: erspan: use bitfield instead of
mask and offset") changes the erspan header to use bitfield, and
commit 2133ebfc987f ("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: b9f6dfff10ca ("samples/bpf: add erspan v2 sample code")
Fixes: 0e79372b6a94 ("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