bpf: Add bpf_link support for sk_msg and sk_skb progs
[sfrench/cifs-2.6.git] / tools / include / uapi / linux / bpf.h
index 6fe9f11c8abe0074b2b124564e2283b2b41f7460..cee0a7915c08a2b44c19de3f74de476361e9f741 100644 (file)
@@ -1135,6 +1135,7 @@ enum bpf_link_type {
        BPF_LINK_TYPE_TCX = 11,
        BPF_LINK_TYPE_UPROBE_MULTI = 12,
        BPF_LINK_TYPE_NETKIT = 13,
+       BPF_LINK_TYPE_SOCKMAP = 14,
        __MAX_BPF_LINK_TYPE,
 };
 
@@ -6724,6 +6725,10 @@ struct bpf_link_info {
                        __u32 ifindex;
                        __u32 attach_type;
                } netkit;
+               struct {
+                       __u32 map_id;
+                       __u32 attach_type;
+               } sockmap;
        };
 } __attribute__((aligned(8)));