]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/bnxt/tf_core/tf_util.h
common/mlx5: add Direct Verbs constants for Windows
[dpdk.git] / drivers / net / bnxt / tf_core / tf_util.h
index 1aa35b6b826bebb24e6a90a6ac4651d47cea48f8..854c51931a928c429eb053fd572753b0a4152221 100644 (file)
@@ -7,7 +7,10 @@
 #define _TF_UTIL_H_
 
 #include "tf_core.h"
-#include "tf_device.h"
+
+#define TF_BITS2BYTES(x) (((x) + 7) >> 3)
+#define TF_BITS2BYTES_WORD_ALIGN(x) ((((x) + 31) >> 5) * 4)
+#define TF_BITS2BYTES_64B_WORD_ALIGN(x) ((((x) + 63) >> 6) * 8)
 
 /**
  * Helper function converting direction to text string