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: Yonghong Song <yhs@fb.com>
diff --git a/introspection/bps.c b/introspection/bps.c
index 769eb1d..a809395 100644
--- a/introspection/bps.c
+++ b/introspection/bps.c
@@ -38,6 +38,7 @@
[BPF_PROG_TYPE_CGROUP_SOCK_ADDR] = "cgroup_sock_addr",
[BPF_PROG_TYPE_LIRC_MODE2] = "lirc_mode2",
[BPF_PROG_TYPE_SK_REUSEPORT] = "sk_reuseport",
+ [BPF_PROG_TYPE_FLOW_DISSECTOR] = "flow_dissector",
};
static const char * const map_type_strings[] = {