diff options
author | Xavier Simonart <simonartxavier@gmail.com> | 2021-11-03 16:46:47 +0000 |
---|---|---|
committer | Xavier Simonart <simonartxavier@gmail.com> | 2021-12-20 12:41:52 +0000 |
commit | d08d92ed360dab327b786fd251224f763dc0a5ac (patch) | |
tree | 287e89ee8642762657c9ae72d9c96a5fe9cc15fb /VNFs/DPPD-PROX/prox_args.c | |
parent | b8f652cf6bd2e8b241a02cb2e455086979abbe15 (diff) |
store packet id in gen and swap
Support configuration option for specifying number of packets
which we will store (gen and swap).
Packets are stored runtime in a buffer and written to disk at exit.
Signed-off-by: Xavier Simonart <simonartxavier@gmail.com>
Change-Id: Iab1c9c13048b6919f77392953675cb8c48aad8e4
Diffstat (limited to 'VNFs/DPPD-PROX/prox_args.c')
-rw-r--r-- | VNFs/DPPD-PROX/prox_args.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/prox_args.c b/VNFs/DPPD-PROX/prox_args.c index d7c436d6..c092e879 100644 --- a/VNFs/DPPD-PROX/prox_args.c +++ b/VNFs/DPPD-PROX/prox_args.c @@ -1599,6 +1599,8 @@ static int get_core_cfg(unsigned sindex, char *str, void *data) return parse_int(&targ->arp_ndp_retransmit_timeout, pkey); if (STR_EQ(str, "number of packets")) return parse_int(&targ->n_pkts, pkey); + if (STR_EQ(str, "store size")) + return parse_int(&targ->store_max, pkey); if (STR_EQ(str, "pipes")) { uint32_t val; int err = parse_int(&val, pkey); |