bpf/progs/netd.h: use defines for some map SIZE constants

This is better for libbpf...

Test: TreeHugger
Flag: EXEMPT mainline / comment only
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ie9ccb37498b89e638fba1e48535d1108536080f1
This commit is contained in:
Maciej Żenczykowski 2025-07-15 12:24:09 -07:00
commit 2175105039

View file

@ -95,9 +95,8 @@ typedef struct {
} SkStorageValue;
STRUCT_SIZE(SkStorageValue, 8);
// 'static' - otherwise these constants end up in .rodata in the resulting .o post compilation
static const int STATS_MAP_SIZE = 5000;
static const int CONFIGURATION_MAP_SIZE = 2;
#define STATS_MAP_SIZE 5000
#define CONFIGURATION_MAP_SIZE 2
#ifdef __cplusplus