]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bpf: udp: Get rid of st_bucket_done
authorJordan Rife <jordan@jrife.io>
Fri, 2 May 2025 16:15:22 +0000 (09:15 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Fri, 2 May 2025 17:54:38 +0000 (10:54 -0700)
commit3fae8959cda5d9d90ea1554385514d71e9103b02
treefd976fc8a1fcced8459ad2b05f1a479e2feff346
parent66d454e99d71857faf249486912e381ec83760b4
bpf: udp: Get rid of st_bucket_done

Get rid of the st_bucket_done field to simplify UDP iterator state and
logic. Before, st_bucket_done could be false if bpf_iter_udp_batch
returned a partial batch; however, with the last patch ("bpf: udp: Make
sure iter->batch always contains a full bucket snapshot"),
st_bucket_done == true is equivalent to iter->cur_sk == iter->end_sk.

Signed-off-by: Jordan Rife <jordan@jrife.io>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
net/ipv4/udp.c