]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'Follow-up BPF helper improvements'
authorAlexei Starovoitov <ast@kernel.org>
Sun, 11 Oct 2020 17:21:05 +0000 (10:21 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 11 Oct 2020 17:21:05 +0000 (10:21 -0700)
commit2652cb9f22a1777df1c6a772f1ce4fe050593ead
treec6559345e3b01dbd0ab5a39bad0e73ec1bb5b263
parent5112bf056974aa0d63ac34e0750e7ba502b9f2ff
parent0010db26209334b89bcfd2f7420bb55458387833
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>