aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorCong Wang <[email protected]>2021-03-31 02:32:24 +0000
committerAlexei Starovoitov <[email protected]>2021-04-01 17:56:13 +0000
commit0739cd28f2645e814586c7536ba5da9825cb8029 (patch)
tree1dda13a7ca4f90e5c5ba6236656c528cd09d9c6e /tools/bpf/bpftool/prog.c
parentskmsg: Introduce a spinlock to protect ingress_msg (diff)
downloadkernel-0739cd28f2645e814586c7536ba5da9825cb8029.tar.gz
kernel-0739cd28f2645e814586c7536ba5da9825cb8029.zip
net: Introduce skb_send_sock() for sock_map
We only have skb_send_sock_locked() which requires callers to use lock_sock(). Introduce a variant skb_send_sock() which locks on its own, callers do not need to lock it any more. This will save us from adding a ->sendmsg_locked for each protocol. To reuse the code, pass function pointers to __skb_send_sock() and build skb_send_sock() and skb_send_sock_locked() on top. Signed-off-by: Cong Wang <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Reviewed-by: Jakub Sitnicki <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions