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:
parent
00c01a6e8f
commit
2175105039
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue