Changes to substitute u64 with atomic64_t
Updates:
In the review for e33abd5947e9d02d3717b928c22267d64342c9cb it was
suggested to use atomic types for packet and byte counts.
Tests:
Flashed firmware with above changes to R920. Verified that
accelerated flows are counted correctly in debugfs
Change-Id: Ia38a9701bd4cd9d981af1957fc0f090a9bd3dd29
diff --git a/sfe_ipv4.h b/sfe_ipv4.h
index ea74338..b02573f 100644
--- a/sfe_ipv4.h
+++ b/sfe_ipv4.h
@@ -159,8 +159,8 @@
/*
* Stats used for Latency flowstats.
*/
- u64 fs_rx_packet_count;
- u64 fs_rx_byte_count;
+ atomic64_t fs_rx_packet_count;
+ atomic64_t fs_rx_byte_count;
#endif //CONFIG_NETFILTER_CP_FLOWSTATS
/*
* Control the operations of the match.