]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: reorganize connection flags
authorWilly Tarreau <w@1wt.eu>
Wed, 3 Oct 2012 18:00:18 +0000 (20:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 Oct 2012 20:26:10 +0000 (22:26 +0200)
commitf3a6d7e115249483cb27de6e4ae9c0dbb54969e6
tree9452a83a5de22d183cac3652438b27f5d8551fc3
parent071e137ec23402b0c4c3cb1a5967c483f34a9270
MEDIUM: connection: reorganize connection flags

The connection flags have progressively been added one after the other
and were not very well organized. Some of them are often used together
and a number of operations are performed on the DATA/SOCK ENA/POL flags.
Thus, they have been reorganized so that flags that work together are
close to each other (allows immediate operands on ARM) and that polling
changes can be detected with fewer operations using a simple shift and
xor. The handshakes are now the last ones so that it will be easier to
add new ones after without risking a collision. All activity-related
flags are also grouped together.
include/proto/connection.h
include/types/connection.h