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
common/mlx5: share MR mempool registration
[dpdk.git]
/
drivers
/
common
/
mlx5
/
windows
/
mlx5_win_ext.h
diff --git
a/drivers/common/mlx5/windows/mlx5_win_ext.h
b/drivers/common/mlx5/windows/mlx5_win_ext.h
index
0e74910
..
b5d4484
100644
(file)
--- a/
drivers/common/mlx5/windows/mlx5_win_ext.h
+++ b/
drivers/common/mlx5/windows/mlx5_win_ext.h
@@
-1,7
+1,7
@@
-/*
+/*
SPDX-License-Identifier: BSD-3-Clause
* Copyright (C) Mellanox Technologies, Ltd. 2001-2020.
* Copyright (C) Mellanox Technologies, Ltd. 2001-2020.
- *
*/
*/
+
#ifndef __MLX5_WIN_ETX_H__
#define __MLX5_WIN_ETX_H__
#ifndef __MLX5_WIN_ETX_H__
#define __MLX5_WIN_ETX_H__
@@
-9,12
+9,13
@@
extern "C" {
#endif
extern "C" {
#endif
+#include "mlx5_prm.h"
#include "mlx5devx.h"
typedef struct mlx5_context {
devx_device_ctx *devx_ctx;
struct devx_device mlx5_dev;
#include "mlx5devx.h"
typedef struct mlx5_context {
devx_device_ctx *devx_ctx;
struct devx_device mlx5_dev;
-
+ struct devx_shutdown_event shutdown_event_obj;
} mlx5_context_st;
typedef struct {
} mlx5_context_st;
typedef struct {
@@
-28,6
+29,18
@@
struct mlx5_devx_umem {
uint32_t umem_id;
};
uint32_t umem_id;
};
+struct mlx5_pd {
+ void *obj;
+ uint32_t pdn;
+ devx_device_ctx *devx_ctx;
+};
+
+struct mlx5_devx_clock {
+ void *p_iseg_internal_timer;
+ u64 clock_frequency_hz;
+ int is_stable_clock_frequency;
+};
+
#define GET_DEVX_CTX(ctx) (((mlx5_context_st *)ctx)->devx_ctx)
#define GET_OBJ_CTX(obj) (((mlx5_devx_obj_st *)obj)->devx_ctx)
#define GET_DEVX_CTX(ctx) (((mlx5_context_st *)ctx)->devx_ctx)
#define GET_OBJ_CTX(obj) (((mlx5_devx_obj_st *)obj)->devx_ctx)