Merge branch 'sock_map: clean up and refactor code for BPF_SK_SKB_VERDICT'
authorAlexei Starovoitov <ast@kernel.org>
Fri, 26 Feb 2021 20:28:04 +0000 (12:28 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Feb 2021 20:28:23 +0000 (12:28 -0800)
commit1e0ab70778bd86a90de438cc5e1535c115a7c396
treedbd64c5a1b8bd7fe227462e6bd67f0781b19870b
parenta83586a7ddba25065ec37323c05deb9019ce4fa9
parentff9614b81be65d648ec4615b593c6e4b2dac6375
Merge branch 'sock_map: clean up and refactor code for BPF_SK_SKB_VERDICT'

Cong Wang says:

====================

From: Cong Wang <cong.wang@bytedance.com>

This patchset is the first series of patches separated out from
the original large patchset, to make reviews easier. This patchset
does not add any new feature or change any functionality but merely
cleans up the existing sockmap and skmsg code and refactors it, to
prepare for the patches followed up. This passed all BPF selftests.

To see the big picture, the original whole patchset is available
on github: https://github.com/congwang/linux/tree/sockmap

and this patchset is also available on github:
https://github.com/congwang/linux/tree/sockmap1
---
v7: add 1 trivial cleanup patch
    define a mask for sk_redir
    fix CONFIG_BPF_SYSCALL in include/net/udp.h
    make sk_psock_done_strp() static
    move skb_bpf_redirect_clear() to sk_psock_backlog()

v6: fix !CONFIG_INET case

v5: improve CONFIG_BPF_SYSCALL dependency
    add 3 trivial cleanup patches

v4: reuse skb dst instead of skb ext
    fix another Kconfig error

v3: fix a few Kconfig compile errors
    remove an unused variable
    add a comment for bpf_convert_data_end_access()

v2: split the original patchset
    compute data_end with bpf_convert_data_end_access()
    get rid of psock->bpf_running
    reduce the scope of CONFIG_BPF_STREAM_PARSER
    do not add CONFIG_BPF_SOCK_MAP
====================

Signed-off-by: Alexei Starovoitov <ast@kernel.org>