common/mlx5: share basic probing with internal drivers
[dpdk.git] / drivers / crypto / mlx5 / mlx5_crypto.h
index d49b000..4d7e6d2 100644 (file)
@@ -8,7 +8,7 @@
 #include <stdbool.h>
 
 #include <rte_cryptodev.h>
-#include <rte_cryptodev_pmd.h>
+#include <cryptodev_pmd.h>
 
 #include <mlx5_common_utils.h>
 #include <mlx5_common_devx.h>
@@ -25,6 +25,7 @@ struct mlx5_crypto_priv {
        volatile uint64_t *uar_addr;
        uint32_t pdn; /* Protection Domain number. */
        uint32_t max_segs_num; /* Maximum supported data segs. */
+       uint8_t qp_ts_format; /* Whether QP supports timestamp formats. */
        struct ibv_pd *pd;
        struct mlx5_hlist *dek_hlist; /* Dek hash list. */
        struct rte_cryptodev_config dev_config;
@@ -43,11 +44,8 @@ struct mlx5_crypto_priv {
 struct mlx5_crypto_qp {
        struct mlx5_crypto_priv *priv;
        struct mlx5_devx_cq cq_obj;
-       struct mlx5_devx_obj *qp_obj;
+       struct mlx5_devx_qp qp_obj;
        struct rte_cryptodev_stats stats;
-       struct mlx5dv_devx_umem *umem_obj;
-       void *umem_buf;
-       volatile uint32_t *db_rec;
        struct rte_crypto_op **ops;
        struct mlx5_devx_obj **mkey; /* WQE's indirect mekys. */
        struct mlx5_mr_ctrl mr_ctrl;