regex/mlx5: support info query
[dpdk.git] / drivers / regex / mlx5 / mlx5_regex.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2020 Mellanox Technologies, Ltd
3  */
4
5 #ifndef MLX5_REGEX_H
6 #define MLX5_REGEX_H
7
8 struct mlx5_regex_priv {
9         TAILQ_ENTRY(mlx5_regex_priv) next;
10         struct ibv_context *ctx; /* Device context. */
11         struct rte_pci_device *pci_dev;
12         struct rte_regexdev *regexdev; /* Pointer to the RegEx dev. */
13 };
14
15 /* mlx5_rxp.c */
16 int mlx5_regex_info_get(struct rte_regexdev *dev,
17                         struct rte_regexdev_info *info);
18
19 #endif /* MLX5_REGEX_H */