git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/i40e/base: add send ASQ command v2 functions
[dpdk.git]
/
drivers
/
net
/
mlx4
/
mlx4_glue.h
diff --git
a/drivers/net/mlx4/mlx4_glue.h
b/drivers/net/mlx4/mlx4_glue.h
index
de251c6
..
96d5cb1
100644
(file)
--- a/
drivers/net/mlx4/mlx4_glue.h
+++ b/
drivers/net/mlx4/mlx4_glue.h
@@
-1,6
+1,6
@@
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2018 6WIND S.A.
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2018 6WIND S.A.
- * Copyright 2018 Mellanox
+ * Copyright 2018 Mellanox
Technologies, Ltd
*/
#ifndef MLX4_GLUE_H_
*/
#ifndef MLX4_GLUE_H_
@@
-19,7
+19,12
@@
#pragma GCC diagnostic error "-Wpedantic"
#endif
#pragma GCC diagnostic error "-Wpedantic"
#endif
+#ifndef MLX4_GLUE_VERSION
+#define MLX4_GLUE_VERSION ""
+#endif
+
struct mlx4_glue {
struct mlx4_glue {
+ const char *version;
int (*fork_init)(void);
int (*get_async_event)(struct ibv_context *context,
struct ibv_async_event *event);
int (*fork_init)(void);
int (*get_async_event)(struct ibv_context *context,
struct ibv_async_event *event);
@@
-78,6
+83,6
@@
struct mlx4_glue {
void *attr);
};
void *attr);
};
-const struct mlx4_glue *mlx4_glue;
+
extern
const struct mlx4_glue *mlx4_glue;
#endif /* MLX4_GLUE_H_ */
#endif /* MLX4_GLUE_H_ */