diff options
author | Cong Wang <cong.wang@bytedance.com> | 2021-03-31 05:32:24 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-04-01 20:56:13 +0300 |
commit | 0739cd28f2645e814586c7536ba5da9825cb8029 (patch) | |
tree | 1dda13a7ca4f90e5c5ba6236656c528cd09d9c6e /net/core/skmsg.c | |
parent | b01fd6e802b6d0a635176f943315670b679d8d7b (diff) | |
download | linux-0739cd28f2645e814586c7536ba5da9825cb8029.tar.xz |
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 <cong.wang@bytedance.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Link: https://lore.kernel.org/bpf/20210331023237.41094-4-xiyou.wangcong@gmail.com
Diffstat (limited to 'net/core/skmsg.c')
0 files changed, 0 insertions, 0 deletions