diff options
Diffstat (limited to 'drivers/net/mlx5/mlx5_glue.c')
-rw-r--r-- | drivers/net/mlx5/mlx5_glue.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_glue.c b/drivers/net/mlx5/mlx5_glue.c index c7965e51..84f9492a 100644 --- a/drivers/net/mlx5/mlx5_glue.c +++ b/drivers/net/mlx5/mlx5_glue.c @@ -4,6 +4,7 @@ */ #include <errno.h> +#include <stdalign.h> #include <stddef.h> #include <stdint.h> @@ -23,6 +24,8 @@ #pragma GCC diagnostic error "-Wpedantic" #endif +#include <rte_config.h> + #include "mlx5_autoconf.h" #include "mlx5_glue.h" @@ -343,6 +346,7 @@ mlx5_glue_dv_create_qp(struct ibv_context *context, #endif } +alignas(RTE_CACHE_LINE_SIZE) const struct mlx5_glue *mlx5_glue = &(const struct mlx5_glue){ .version = MLX5_GLUE_VERSION, .fork_init = mlx5_glue_fork_init, |