Unverified Commit d4b23876 authored by yonghong-song's avatar yonghong-song Committed by GitHub
Browse files

sync with latest net-next bpf headers (#2001)



Sync compat bpf.h and virtual_bpf.h with latest net-next versions

Also add a barrier for the test_brb bpf program like below
         meta.prog_id = skb->cb[0];
+        asm volatile("" ::: "memory");
         meta.rx_port_id = skb->cb[1];
so two cb read does not become a 8 byte load which is not
allowed for ubuntu 16.04 kernel (4.4 based). The 8 byte load
is allowed for skb->cb's for later kernels.

Signed-off-by: default avatarYonghong Song <yhs@fb.com>
parent 9f3662ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment