common/mlx5: fix default devargs initialization
[dpdk.git] / drivers / common / mlx5 / mlx5_malloc.h
index d3e5f5b..92149f7 100644 (file)
@@ -9,9 +9,17 @@
 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. */
+       /* Memory will be allocated depends on sys_mem_en. */
        MLX5_MEM_SYS = 1 << 0,
        /* Memory should be allocated from system. */
        MLX5_MEM_RTE = 1 << 1,
@@ -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);
 
 /**