vppinfra: name the unused u32 in pool header 63/43863/3
authorFlorin Coras <[email protected]>
Thu, 9 Oct 2025 01:20:26 +0000 (21:20 -0400)
committerFlorin Coras <[email protected]>
Thu, 9 Oct 2025 01:23:25 +0000 (01:23 +0000)
Allow pool consumers to potentially use the unused u32 in pool_header_t.

Type: improvement

Change-Id: Ie5cc65fff4a41b0a3fa232bf4040e59d8354eae8
Signed-off-by: Florin Coras <[email protected]>
src/vppinfra/pool.h

index d73a978..7d95e6c 100644 (file)
@@ -61,6 +61,8 @@ typedef struct
   /** Maximum size of the pool, in elements */
   u32 max_elts;
 
+  /** Unsed by pool, can be used as opaque storage by consumers */
+  u32 opaque;
 } pool_header_t;
 
 /** Get pool header from user pool pointer */