From 61b77f03b29d6c10a2173bc4429e8dfd8ef4ad1d Mon Sep 17 00:00:00 2001 From: roykingz Date: Wed, 6 Sep 2023 16:37:54 +0800 Subject: [PATCH] dpvs: fix ipv4 pkts stats bug --- include/ipv4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ipv4.h b/include/ipv4.h index cf95882f2..40e2b1823 100644 --- a/include/ipv4.h +++ b/include/ipv4.h @@ -100,7 +100,7 @@ extern rte_spinlock_t ip4_stats_lock; #define IP4_UPD_PO_STATS(field, val) \ do { \ rte_spinlock_lock(&ip4_stats_lock); \ - __IP4_ADD_STATS(field##pkts, (val)); \ + ip4_statistics.field##pkts ++; \ __IP4_ADD_STATS(field##octets, (val)); \ rte_spinlock_unlock(&ip4_stats_lock); \ } while (0)