aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/qp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mlx5/qp.h')
-rw-r--r--include/linux/mlx5/qp.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/mlx5/qp.h b/include/linux/mlx5/qp.h
index 62af7512dabb..4778d41085d4 100644
--- a/include/linux/mlx5/qp.h
+++ b/include/linux/mlx5/qp.h
@@ -473,6 +473,11 @@ struct mlx5_core_qp {
473 int pid; 473 int pid;
474}; 474};
475 475
476struct mlx5_core_dct {
477 struct mlx5_core_qp mqp;
478 struct completion drained;
479};
480
476struct mlx5_qp_path { 481struct mlx5_qp_path {
477 u8 fl_free_ar; 482 u8 fl_free_ar;
478 u8 rsvd3; 483 u8 rsvd3;
@@ -549,6 +554,9 @@ static inline struct mlx5_core_mkey *__mlx5_mr_lookup(struct mlx5_core_dev *dev,
549 return radix_tree_lookup(&dev->priv.mkey_table.tree, key); 554 return radix_tree_lookup(&dev->priv.mkey_table.tree, key);
550} 555}
551 556
557int mlx5_core_create_dct(struct mlx5_core_dev *dev,
558 struct mlx5_core_dct *qp,
559 u32 *in, int inlen);
552int mlx5_core_create_qp(struct mlx5_core_dev *dev, 560int mlx5_core_create_qp(struct mlx5_core_dev *dev,
553 struct mlx5_core_qp *qp, 561 struct mlx5_core_qp *qp,
554 u32 *in, 562 u32 *in,
@@ -558,8 +566,12 @@ int mlx5_core_qp_modify(struct mlx5_core_dev *dev, u16 opcode,
558 struct mlx5_core_qp *qp); 566 struct mlx5_core_qp *qp);
559int mlx5_core_destroy_qp(struct mlx5_core_dev *dev, 567int mlx5_core_destroy_qp(struct mlx5_core_dev *dev,
560 struct mlx5_core_qp *qp); 568 struct mlx5_core_qp *qp);
569int mlx5_core_destroy_dct(struct mlx5_core_dev *dev,
570 struct mlx5_core_dct *dct);
561int mlx5_core_qp_query(struct mlx5_core_dev *dev, struct mlx5_core_qp *qp, 571int mlx5_core_qp_query(struct mlx5_core_dev *dev, struct mlx5_core_qp *qp,
562 u32 *out, int outlen); 572 u32 *out, int outlen);
573int mlx5_core_dct_query(struct mlx5_core_dev *dev, struct mlx5_core_dct *dct,
574 u32 *out, int outlen);
563 575
564int mlx5_core_set_delay_drop(struct mlx5_core_dev *dev, 576int mlx5_core_set_delay_drop(struct mlx5_core_dev *dev,
565 u32 timeout_usec); 577 u32 timeout_usec);