diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2026-03-02 15:31:34 +1100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-03-04 17:52:55 +0100 |
| commit | 9ee780567310f2486e1510db502a96e5b1a81a1c (patch) | |
| tree | f36fd4476f51e8b031951e8acf03216c45f15270 /doc | |
| parent | 7d0fe0830ff37087249ef644d85b8dadd84f1135 (diff) | |
| download | passt-9ee780567310f2486e1510db502a96e5b1a81a1c.tar passt-9ee780567310f2486e1510db502a96e5b1a81a1c.tar.gz passt-9ee780567310f2486e1510db502a96e5b1a81a1c.tar.bz2 passt-9ee780567310f2486e1510db502a96e5b1a81a1c.tar.lz passt-9ee780567310f2486e1510db502a96e5b1a81a1c.tar.xz passt-9ee780567310f2486e1510db502a96e5b1a81a1c.tar.zst passt-9ee780567310f2486e1510db502a96e5b1a81a1c.zip | |
fwd, pif: Replace with pif_sock_l4() with pif_listen()
It turns out all users of pif_sock_l4() use it for "listening" sockets,
which now all have a common epoll reference format. We can take advantage
of that to pass the necessary epoll information into pif_sock_l4() in a
more natural way, rather than as an opaque u32.
That in turn allows union fwd_listen_ref can become a struct, since the
union only exist to allow the meaningful fields to be coerced into a u32
for pif_sock_l4().
Rename pif_sock_l4() to pif_listen() to reflect the new semantics. While
we're there, remove the static_assert() on the fwd_listen_ref's size. We
do still need it to fit into 32 bits, but that constraint is imposed only
by the fact that it needs to fit into the whole, epoll_ref structure,
which we already check with a static_assert() in epoll_ctl.h.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reported-by: Peter Foley <pefoley@google.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
