1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright 2020 Mellanox Technologies, Ltd 3 */ 4 5 #ifndef RTE_PMD_MLX5_VERBS_H_ 6 #define RTE_PMD_MLX5_VERBS_H_ 7 8 #include "mlx5.h" 9 10 struct mlx5_verbs_ops { 11 mlx5_reg_mr_t reg_mr; 12 mlx5_dereg_mr_t dereg_mr; 13 }; 14 15 int mlx5_txq_ibv_obj_new(struct rte_eth_dev *dev, uint16_t idx); 16 void mlx5_txq_ibv_obj_release(struct mlx5_txq_obj *txq_obj); 17 18 /* Verbs ops struct */ 19 extern const struct mlx5_verbs_ops mlx5_verbs_ops; 20 extern struct mlx5_obj_ops ibv_obj_ops; 21 22 #endif /* RTE_PMD_MLX5_VERBS_H_ */ 23