History

Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next

Daniel Borkmann says: ==================== bpf-next 2023-01-04 We've added 45 non-merge commits during the last 21 day(s) which contain a total of 50 files changed, 1454 insertions(+), 375 deletions(-). The main changes are: 1) Fixes, improvements and refactoring of parts of BPF verifier's state equivalence checks, from Andrii Nakryiko. 2) Fix a few corner cases in libbpf's BTF-to-C converter in particular around padding handling and enums, also from Andrii Nakryiko. 3) Add BPF_F_NO_TUNNEL_KEY extension to bpf_skb_set_tunnel_key to better support decap on GRE tunnel devices not operating in collect metadata, from Christian Ehrig. 4) Improve x86 JIT's codegen for PROBE_MEM runtime error checks, from Dave Marchevsky. 5) Remove the need for trace_printk_lock for bpf_trace_printk and bpf_trace_vprintk helpers, from Jiri Olsa. 6) Add proper documentation for BPF_MAP_TYPE_SOCK{MAP,HASH} maps, from Maryam Tahhan. 7) Improvements in libbpf's btf_parse_elf error handling, from Changbin Du. 8) Bigger batch of improvements to BPF tracing code samples, from Daniel T. Lee. 9) Add LoongArch support to libbpf's bpf_tracing helper header, from Hengqi Chen. 10) Fix a libbpf compiler warning in perf_event_open_probe on arm32, from Khem Raj. 11) Optimize bpf_local_storage_elem by removing 56 bytes of padding, from Martin KaFai Lau. 12) Use pkg-config to locate libelf for resolve_btfids build, from Shen Jiamin. 13) Various libbpf improvements around API documentation and errno handling, from Xin Liu. * tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next: (45 commits) libbpf: Return -ENODATA for missing btf section libbpf: Add LoongArch support to bpf_tracing.h libbpf: Restore errno after pr_warn. libbpf: Added the description of some API functions libbpf: Fix invalid return address register in s390 samples/bpf: Use BPF_KSYSCALL macro in syscall tracing programs samples/bpf: Fix tracex2 by using BPF_KSYSCALL macro samples/bpf: Change _kern suffix to .bpf with syscall tracing program samples/bpf: Use vmlinux.h instead of implicit headers in syscall tracing program samples/bpf: Use kyscall instead of kprobe in syscall tracing program bpf: rename list_head -> graph_root in field info types libbpf: fix errno is overwritten after being closed. bpf: fix regs_exact() logic in regsafe() to remap IDs correctly bpf: perform byte-by-byte comparison only when necessary in regsafe() bpf: reject non-exact register type matches in regsafe() bpf: generalize MAYBE_NULL vs non-MAYBE_NULL rule bpf: reorganize struct bpf_reg_state fields bpf: teach refsafe() to take into account ID remapping bpf: Remove unused field initialization in bpf's ctl_table selftests/bpf: Add jit probe_mem corner case tests to s390x denylist ... ====================

Jakub Kicinski committed 3 years ago

Commit d75858e2 parents 1f47510 acd3b7750 files · +1454 −375Browse files

Showing the changes to include/uapi (1 of 50 files). Show all

Unified · Split

include/uapi/linux/bpf.h+4−0
@@ -2001,6 +2001,9 @@ union bpf_attr { · 2000 unmodified lines
2001 * sending the packet. This flag was added for GRE2001 * sending the packet. This flag was added for GRE
2002 * encapsulation, but might be used with other protocols2002 * encapsulation, but might be used with other protocols
2003 * as well in the future.2003 * as well in the future.
2004 * **BPF_F_NO_TUNNEL_KEY**
2005 * Add a flag to tunnel metadata indicating that no tunnel
2006 * key should be set in the resulting tunnel header.
2004 *2007 *
2005 * Here is a typical usage on the transmit path:2008 * Here is a typical usage on the transmit path:
2006 *2009 *
@@ -5764,6 +5767,7 @@ enum { · 3757 unmodified lines
5764 BPF_F_ZERO_CSUM_TX = (1ULL << 1),5767 BPF_F_ZERO_CSUM_TX = (1ULL << 1),
5765 BPF_F_DONT_FRAGMENT = (1ULL << 2),5768 BPF_F_DONT_FRAGMENT = (1ULL << 2),
5766 BPF_F_SEQ_NUMBER = (1ULL << 3),5769 BPF_F_SEQ_NUMBER = (1ULL << 3),
5770 BPF_F_NO_TUNNEL_KEY = (1ULL << 4),
5767};5771};
5768 5772
5769/* BPF_FUNC_skb_get_tunnel_key flags. */5773/* BPF_FUNC_skb_get_tunnel_key flags. */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t