common/mlx5: introduce user index field in completion
[dpdk.git] / drivers / common / mlx5 / mlx5_malloc.h
index d3e5f5b..74b7eeb 100644 (file)
@@ -9,6 +9,14 @@
 extern "C" {
 #endif
 
+#ifndef MLX5_MALLOC_ALIGNMENT
+#ifndef RTE_ARCH_64
+#define MLX5_MALLOC_ALIGNMENT 8
+#else
+#define MLX5_MALLOC_ALIGNMENT 16
+#endif
+#endif
+
 enum mlx5_mem_flags {
        MLX5_MEM_ANY = 0,
        /* Memory will be allocated dpends on sys_mem_en. */
@@ -30,7 +38,6 @@ enum mlx5_mem_flags {
  * @param sys_mem_en
  *   Use system memory or not.
  */
-__rte_internal
 void mlx5_malloc_mem_select(uint32_t sys_mem_en);
 
 /**