Skip to content

Commit

Permalink
dpvs: fix ipv4 pkts stats bug
Browse files Browse the repository at this point in the history
  • Loading branch information
roykingz committed Sep 6, 2023
1 parent f328c15 commit 61b77f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ipv4.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 61b77f0

Please sign in to comment.