Add command line opts: tablemax, onerror
@@ -47,6 +47,7 @@ variant=test -> include-srcs += hdep/'dpdk/dpdk_nicoff.c'
variant=test -> include-srcs += hdep/'dpdk/dpdk_nicoff_check_incoming_packet.c'
variant=test -> p4opts += --p4incdir=examples/include
+tablemax -> include-defs += #define MAX_TABLE_SIZE ${tablemax}
tested -> include-defs += #define T4P4S_TESTENTRY ${tested}
x_random=fake -> include-defs += #define T4P4S_FAKERANDOM
@@ -92,9 +93,12 @@ p4rt -> cflags += -DT4P4S_P4RT
lineno -> cflags += -DT4P4S_DEBUG_LINENO
lto -> cflags += -Dflto=thin
maxbytes -> cflags += -DT4P4S_DEBUG_PKT_MAXBYTES=${maxbytes}
-consts -> cflags += -DTEST_CONST_ENTRIES=${consts}
dbglock=off -> cflags += -DT4P4S_NO_DBG_LOCK
macro -> cflags += -D${macro}
+; valid values (other than undefined) are: hide, simple
+consts -> cflags += -DTEST_CONST_ENTRIES_${consts}
+; valid values (other than undefined) are: fail
+onerror -> cflags += -DT4P4S_ON_ERROR_${consts}
; emits all headers, not only valid ones
emit=all -> cflags += -DT4P4S_EMIT=1
