History

Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next

Alexei Starovoitov says: ==================== pull-request: bpf-next 2021-12-30 The following pull-request contains BPF updates for your *net-next* tree. We've added 72 non-merge commits during the last 20 day(s) which contain a total of 223 files changed, 3510 insertions(+), 1591 deletions(-). The main changes are: 1) Automatic setrlimit in libbpf when bpf is memcg's in the kernel, from Andrii. 2) Beautify and de-verbose verifier logs, from Christy. 3) Composable verifier types, from Hao. 4) bpf_strncmp helper, from Hou. 5) bpf.h header dependency cleanup, from Jakub. 6) get_func_[arg|ret|arg_cnt] helpers, from Jiri. 7) Sleepable local storage, from KP. 8) Extend kfunc with PTR_TO_CTX, PTR_TO_MEM argument support, from Kumar. ====================

David S. Miller committed 4 years ago

Commit e63a0232 parents ce2b6eb 9e6b19a221 files · +3506 −1591Browse files

Showing the changes to include/net (7 of 221 files). Show all

Unified · Split

7 files
  1. include/net/ip6_fib.h +1 −0
  2. include/net/ipv6.h +2 −0
  3. include/net/netns/bpf.h +8 −1
  4. include/net/route.h +1 −0
  5. include/net/sock.h +1 −1
  6. include/net/xdp_priv.h +0 −1
  7. include/net/xdp_sock.h +1 −0
include/net/ip6_fib.h+1−0
@@ -20,6 +20,7 @@ · 19 unmodified lines
2020 #include <net/inetpeer.h>
2121 #include <net/fib_notifier.h>
2222 #include <linux/indirect_call_wrapper.h>
23+#include <uapi/linux/bpf.h>
2324
2425 #ifdef CONFIG_IPV6_MULTIPLE_TABLES
2526 #define FIB6_TABLE_HASHSZ 256
include/net/ipv6.h+2−0
@@ -21,6 +21,8 @@ · 20 unmodified lines
2121 #include <net/snmp.h>
2222 #include <net/netns/hash.h>
2323
24+struct ip_tunnel_info;
25+
2426 #define SIN6_LEN_RFC2133 24
2527
2628 #define IPV6_MAXPLEN 65535
include/net/netns/bpf.h+8−1
@@ -6,11 +6,18 @@ · 5 unmodified lines
66 #ifndef __NETNS_BPF_H__
77 #define __NETNS_BPF_H__
88
9−#include <linux/bpf-netns.h>
9+#include <linux/list.h>
1010
1111 struct bpf_prog;
1212 struct bpf_prog_array;
1313
14+enum netns_bpf_attach_type {
15+ NETNS_BPF_INVALID = -1,
16+ NETNS_BPF_FLOW_DISSECTOR = 0,
17+ NETNS_BPF_SK_LOOKUP,
18+ MAX_NETNS_BPF_ATTACH_TYPE
19+};
20+
1421 struct netns_bpf {
1522 /* Array of programs to run compiled from progs or links */
1623 struct bpf_prog_array __rcu *run_array[MAX_NETNS_BPF_ATTACH_TYPE];
include/net/route.h+1−0
@@ -43,6 +43,7 @@ · 42 unmodified lines
4343 #define RT_CONN_FLAGS(sk) (RT_TOS(inet_sk(sk)->tos) | sock_flag(sk, SOCK_LOCALROUTE))
4444 #define RT_CONN_FLAGS_TOS(sk,tos) (RT_TOS(tos) | sock_flag(sk, SOCK_LOCALROUTE))
4545
46+struct ip_tunnel_info;
4647 struct fib_nh;
4748 struct fib_info;
4849 struct uncached_list;
include/net/sock.h+1−1
@@ -56,7 +56,6 @@ · 55 unmodified lines
5656 #include <linux/wait.h>
5757 #include <linux/cgroup-defs.h>
5858 #include <linux/rbtree.h>
59−#include <linux/filter.h>
6059 #include <linux/rculist_nulls.h>
6160 #include <linux/poll.h>
6261 #include <linux/sockptr.h>
@@ -249,6 +248,7 @@ struct sock_common { · 186 unmodified lines
249248 };
250249
251250 struct bpf_local_storage;
251+struct sk_filter;
252252
253253 /**
254254 * struct sock - network layer representation of sockets
include/net/xdp_priv.h+0−1
@@ -10,7 +10,6 @@ struct xdp_mem_allocator { · 9 unmodified lines
1010 union {
1111 void *allocator;
1212 struct page_pool *page_pool;
13− struct zero_copy_allocator *zc_alloc;
1413 };
1514 struct rhash_head node;
1615 struct rcu_head rcu;
include/net/xdp_sock.h+1−0
@@ -6,6 +6,7 @@ · 5 unmodified lines
66 #ifndef _LINUX_XDP_SOCK_H
77 #define _LINUX_XDP_SOCK_H
88
9+#include <linux/bpf.h>
910 #include <linux/workqueue.h>
1011 #include <linux/if_xdp.h>
1112 #include <linux/mutex.h>