RE: [PATCH bpf-next 1/6] net: sk_msg: simplify sk_psock initialization

2020-08-19 Thread John Fastabend
Lorenz Bauer wrote: > Initializing psock->sk_proto and other saved callbacks is only > done in sk_psock_update_proto, after sk_psock_init has returned. > The logic for this is difficult to follow, and needlessly complex. > > Instead, initialize psock->sk_proto whenever we allocate a new > psock. A

[PATCH bpf-next 1/6] net: sk_msg: simplify sk_psock initialization

2020-08-19 Thread Lorenz Bauer
Initializing psock->sk_proto and other saved callbacks is only done in sk_psock_update_proto, after sk_psock_init has returned. The logic for this is difficult to follow, and needlessly complex. Instead, initialize psock->sk_proto whenever we allocate a new psock. Additionally, assert the followin