net/sfc: support flow action count in transfer rules
[dpdk.git] / drivers / net / sfc / sfc_tweak.h
index f2d8701..d09c7a3 100644 (file)
  */
 #define SFC_RXD_WAIT_TIMEOUT_NS_DEF    (200U * 1000)
 
+/**
+ * Ideally reading packet and byte counters together should return
+ * consistent values. I.e. a number of bytes corresponds to a number of
+ * packets. Since counters are updated in one thread and queried in
+ * another it requires either locking or atomics which are very
+ * expensive from performance point of view. So, disable it by default.
+ */
+#define SFC_SW_STATS_ATOMIC            0
+
 #endif /* _SFC_TWEAK_H_ */