From: Anatoly Burakov Date: Wed, 18 Jun 2014 14:50:31 +0000 (+0100) Subject: ip_frag: add config option to enable statistics X-Git-Tag: spdx-start~10586 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=240952a9e5643e95ce8b4ed8e3a38f0b64bc9223;p=dpdk.git ip_frag: add config option to enable statistics Signed-off-by: Anatoly Burakov Acked-by: Thomas Monjalon --- diff --git a/config/common_bsdapp b/config/common_bsdapp index 989e1da941..d5db4ab48b 100644 --- a/config/common_bsdapp +++ b/config/common_bsdapp @@ -294,6 +294,7 @@ CONFIG_RTE_LIBRTE_NET=y CONFIG_RTE_LIBRTE_IP_FRAG=y CONFIG_RTE_LIBRTE_IP_FRAG_DEBUG=n CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=4 +CONFIG_RTE_LIBRTE_IP_FRAG_TBL_STAT=n # # Compile librte_meter diff --git a/config/common_linuxapp b/config/common_linuxapp index b19c4d943d..c5c0cb6692 100644 --- a/config/common_linuxapp +++ b/config/common_linuxapp @@ -337,6 +337,7 @@ CONFIG_RTE_LIBRTE_NET=y CONFIG_RTE_LIBRTE_IP_FRAG=y CONFIG_RTE_LIBRTE_IP_FRAG_DEBUG=n CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=4 +CONFIG_RTE_LIBRTE_IP_FRAG_TBL_STAT=n # # Compile librte_meter diff --git a/examples/ip_reassembly/main.c b/examples/ip_reassembly/main.c index 625d21f5a7..7311b29f07 100644 --- a/examples/ip_reassembly/main.c +++ b/examples/ip_reassembly/main.c @@ -310,11 +310,11 @@ struct rte_lpm6_config lpm6_config = { static struct rte_lpm *socket_lpm[RTE_MAX_NUMA_NODES]; static struct rte_lpm6 *socket_lpm6[RTE_MAX_NUMA_NODES]; -#ifdef IPV6_FRAG_TBL_STAT +#ifdef RTE_LIBRTE_IP_FRAG_TBL_STAT #define TX_LCORE_STAT_UPDATE(s, f, v) ((s)->f += (v)) #else #define TX_LCORE_STAT_UPDATE(s, f, v) do {} while (0) -#endif /* IPV6_FRAG_TBL_STAT */ +#endif /* RTE_LIBRTE_IP_FRAG_TBL_STAT */ /* * If number of queued packets reached given threahold, then