bpf: tcp: Use bpf_tcp_iter_batch_item for bpf_tcp_iter_state batch items
authorJordan Rife <jordan@jrife.io>
Mon, 14 Jul 2025 18:09:08 +0000 (11:09 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 14 Jul 2025 19:09:09 +0000 (12:09 -0700)
commitefeb820951ebf3778830256496ff72d00d135310
treeb34189d9a124289cb571db3d17a82167fb794109
parente25ab9b874a4bd8c6e3e5ce66cbe8a1dd4096e2e
bpf: tcp: Use bpf_tcp_iter_batch_item for bpf_tcp_iter_state batch items

Prepare for the next patch that tracks cookies between iterations by
converting struct sock **batch to union bpf_tcp_iter_batch_item *batch
inside struct bpf_tcp_iter_state.

Signed-off-by: Jordan Rife <jordan@jrife.io>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
net/ipv4/tcp_ipv4.c