]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf-sk-msg-pop-data'
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 28 Nov 2018 21:07:57 +0000 (22:07 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 28 Nov 2018 21:07:58 +0000 (22:07 +0100)
commitdf8cc67687f133fdb3d1d34ca40c513bb7ffe4f0
treec111feefec6b729f35b21583ffc2b66cfc4fbe27
parent73d70ad2e127a97c98c2dd9229856be0b6d3199d
parent7596f11edcdb53f86112b6a50ced557731a330c4
Merge branch 'bpf-sk-msg-pop-data'

John Fastabend says:

====================
After being able to add metadata to messages with sk_msg_push_data we
have also found it useful to be able to "pop" this metadata off before
sending it to applications in some cases. This series adds a new helper
sk_msg_pop_data() and the associated patches to add tests and tools/lib
support.

Thanks!

v2: Daniel caught that we missed adding sk_msg_pop_data to the changes
    data helper so that the verifier ensures BPF programs revalidate
    data after using this helper. Also improve documentation adding a
    return description and using RST syntax per Quentin's comment. And
    delta calculations for DROP with pop'd data (albeit a strange set
    of operations for a program to be doing) had potential to be
    incorrect possibly confusing user space applications, so fix it.
====================

Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>