]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/sfc/sfc_tweak.h
net/sfc: support flow action count in transfer rules
[dpdk.git] / drivers / net / sfc / sfc_tweak.h
index f2d8701421c62486bcc899ed1b8d504b80d0c2e9..d09c7a31251cb5e05655fe7e033179891dd1227a 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_ */