On Wed, Mar 31, 2021 at 04:32 AM CEST, Cong Wang wrote: > From: Cong Wang <[email protected]> > > 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. > > Cc: John Fastabend <[email protected]> > Cc: Daniel Borkmann <[email protected]> > Cc: Jakub Sitnicki <[email protected]> > Cc: Lorenz Bauer <[email protected]> > Signed-off-by: Cong Wang <[email protected]> > ---
Reviewed-by: Jakub Sitnicki <[email protected]>
