MINOR: htx: Use a macro for overhead induced by HTX
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 17 Nov 2023 09:52:36 +0000 (10:52 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 17 Nov 2023 11:13:00 +0000 (12:13 +0100)
commit7393bf7e424d4cd2e0927bf4dc95eb799ec67dd4
treedb3f344cfefe7aa47abbea784722326d07836017
parentb68c579eda648090f14e977ce84ef816a4b4200d
MINOR: htx: Use a macro for overhead induced by HTX

The overhead induced by the HTX format was set to the HTX structure itself
and two HTX blocks. It was set this way to optimize zero-copy during
transfers. This value may (and will) be used at different places. Thus we
now use a macro, called HTX_BUF_OVERHEAD.
include/haproxy/htx-t.h
include/haproxy/htx.h