bpf: Cleanup & optimization - #13269
Conversation
|
Upstream branch: 6f03361 |
673b1f0 to
dd132f6
Compare
|
Upstream branch: 9786d42 |
e6a5e64 to
d999396
Compare
dd132f6 to
6220a54
Compare
|
Upstream branch: 806c1a1 |
d999396 to
a3b0970
Compare
6220a54 to
fa81f18
Compare
|
Upstream branch: aacd13e |
a3b0970 to
121af13
Compare
fa81f18 to
fdd9d75
Compare
|
Upstream branch: 259d60f |
121af13 to
7f8462a
Compare
fdd9d75 to
c66e1e2
Compare
|
Upstream branch: 4d9551b |
7f8462a to
c6087f2
Compare
c66e1e2 to
114cb6a
Compare
|
Upstream branch: 409a9bd |
c6087f2 to
0ce62a7
Compare
|
Upstream branch: 409a9bd |
0ce62a7 to
f598663
Compare
114cb6a to
ddff495
Compare
|
Upstream branch: c7e6175 |
f598663 to
57c9919
Compare
ce52aea to
a5710c4
Compare
|
Upstream branch: d82ebfc |
bacfe79 to
f71c0d0
Compare
a5710c4 to
233ffc0
Compare
|
Upstream branch: ce7c9f6 |
f71c0d0 to
09eb02f
Compare
233ffc0 to
5d19d61
Compare
|
Upstream branch: c93cbdb |
09eb02f to
3f4fd12
Compare
5d19d61 to
7b509dc
Compare
|
Upstream branch: c93cbdb |
3f4fd12 to
4bf0144
Compare
7b509dc to
93097fe
Compare
|
Upstream branch: 8eb1892 |
4bf0144 to
c303961
Compare
93097fe to
b51acce
Compare
__bpf_sk_lookup() and bpf_sk_lookup() duplicate the same sk_to_full_sk() reqsk-to-listener upgrade. Extract it into a helper. Leave the currently unreachable WARN_ONCE as a defensive assert. No functional change. Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com> Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com> Signed-off-by: Michal Luczaj <mhal@rbox.co>
…ookup psock's hold on the looked up socket isn't dropped until sk_psock_drop() -> queue_rcu_work() -> sk_psock_destroy() runs, which happens only after the entry is unlinked and an RCU grace period elapses. Since the lookup runs under RCU, a non-NULL result guarantees sk_refcnt >= 1: refcount_inc_not_zero() can never fail here. Use sock_hold() instead. Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com> Signed-off-by: Michal Luczaj <mhal@rbox.co> Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
|
Upstream branch: d99bda7 |
c303961 to
4d93eef
Compare
b51acce to
b27c6f9
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1145439 irrelevant now. Closing PR. |
Pull request for series with
subject: bpf: Cleanup & optimization
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1145439