]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: fd: prepare FD_POLL_* to move to bits 8-15
authorWilly Tarreau <w@1wt.eu>
Tue, 6 Apr 2021 14:55:17 +0000 (16:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Apr 2021 13:08:40 +0000 (15:08 +0200)
commit8d27c203ed40e5bbdc4585a384f99aca10a1a434
tree5ef6b530e8947af762d660b43dbc9fde7f8cdc33
parentfc0cdfb9b7f66de8c36ca819c03a8012223cc69a
MEDIUM: fd: prepare FD_POLL_* to move to bits 8-15

In preparation of merging FD_POLL* and FD_EV*, this only changes the
value of FD_POLL_* to use bits 8-15 (the second byte). The size of the
field has been temporarily extended to 32 bits already, as well as
the temporary variables that carry the new composite value inside
fd_update_events(). The resulting fdtab entry becomes temporarily
unaligned. All places making access to .ev or FD_POLL_* were carefully
inspected to make sure they were safe regarding this change. Only one
temporary update was needed for the "show fd" code. The code was only
slightly inflated at this step.
include/haproxy/fd-t.h
include/haproxy/fd.h
src/cli.c