MINOR: ring: add a function to compute max ring payload
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 26 Jun 2023 17:22:38 +0000 (19:22 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Sep 2023 14:06:39 +0000 (16:06 +0200)
commit5b295ff409d66b961db28955c844b958efcd0b8a
tree78253ec16d1eece4d564540200ccc21dc061d2f3
parent06d36913bd2e8c74d52cf85cece0a783043b0c29
MINOR: ring: add a function to compute max ring payload

Add a helper function to the ring API to compute the maximum payload
length that could fit into the ring based on ring size.
include/haproxy/ring.h
src/ring.c