diff options
author | 2020-10-11 10:21:05 -0700 | |
---|---|---|
committer | 2020-10-11 10:21:05 -0700 | |
commit | 673e3752456180de804cf4f43de26ef1d6b90a1b (patch) | |
tree | c6559345e3b01dbd0ab5a39bad0e73ec1bb5b263 /samples/bpf | |
parent | Merge branch 'bpf-llvm-reg-alloc-patterns' (diff) | |
parent | bpf, selftests: Add redirect_peer selftest (diff) | |
download | linux-673e3752456180de804cf4f43de26ef1d6b90a1b.tar.gz linux-673e3752456180de804cf4f43de26ef1d6b90a1b.tar.bz2 linux-673e3752456180de804cf4f43de26ef1d6b90a1b.zip |
Merge branch 'Follow-up BPF helper improvements'
Daniel Borkmann says:
====================
This series addresses most of the feedback [0] that was to be followed
up from the last series, that is, UAPI helper comment improvements and
getting rid of the ifindex obj file hacks in the selftest by using a
BPF map instead. The __sk_buff data/data_end pointer work, I'm planning
to do in a later round as well as the mem*() BPF improvements we have
in Cilium for libbpf. Next, the series adds two features, i) a helper
called redirect_peer() to improve latency on netns switch, and ii) to
allow map in map with dynamic inner array map sizes. Selftests for each
are added as well. For details, please check individual patches, thanks!
[0] https://lore.kernel.org/bpf/cover.1601477936.git.daniel@iogearbox.net/
v5 -> v6:
- Going with Andrii's suggestion to make the misconfigured verifier
test more robust, and only probe on -EOPNOTSUPP (Andrii)
v4 -> v5:
- Replace cnt == -EOPNOTSUPP check with cnt < 0; I've used < 0
here as I think it's useful to keep the existing cnt == 0 ||
cnt >= ARRAY_SIZE(insn_buf) for error detection (Andrii)
v3 -> v4:
- Rename new array map flag to BPF_F_INNER_MAP (Alexei)
v2 -> v3:
- Remove tab that slipped into uapi helper desc (Jakub)
- Rework map in map for array to error from map_gen_lookup (Andrii)
v1 -> v2:
- Fixed selftest comment wrt inner1/inner2 value (Yonghong)
====================
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf')
0 files changed, 0 insertions, 0 deletions