]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5_glue.h
net/enic: allow to change RSS settings
[dpdk.git] / drivers / net / mlx5 / mlx5_glue.h
index 7fed302bad4bdcd2d09e3f4c1ebebb9bac62204f..b5efee3b66198d35d925ad8d1850745289bbe76e 100644 (file)
 #pragma GCC diagnostic error "-Wpedantic"
 #endif
 
+#ifndef MLX5_GLUE_VERSION
+#define MLX5_GLUE_VERSION ""
+#endif
+
 #ifndef HAVE_IBV_DEVICE_COUNTERS_SET_SUPPORT
 struct ibv_counter_set;
 struct ibv_counter_set_data;
@@ -27,7 +31,9 @@ struct ibv_counter_set_init_attr;
 struct ibv_query_counter_set_attr;
 #endif
 
+/* LIB_GLUE_VERSION must be updated every time this structure is modified. */
 struct mlx5_glue {
+       const char *version;
        int (*fork_init)(void);
        struct ibv_pd *(*alloc_pd)(struct ibv_context *context);
        int (*dealloc_pd)(struct ibv_pd *pd);