xref: /dpdk/drivers/net/mlx5/rte_pmd_mlx5.h (revision 7adf992fb9bf7162a7edc45b50d10fbb1d57824d)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2020 Mellanox Technologies, Ltd
3  */
4 
5 #ifndef RTE_PMD_PRIVATE_MLX5_H_
6 #define RTE_PMD_PRIVATE_MLX5_H_
7 
8 /**
9  * @file
10  * MLX5 public header.
11  *
12  * This interface provides the ability to support private PMD
13  * dynamic flags.
14  */
15 
16 #define RTE_PMD_MLX5_FINE_GRANULARITY_INLINE "mlx5_fine_granularity_inline"
17 
18 /**
19  * Returns the dynamic flags name, that are supported.
20  *
21  * @param[out] names
22  *   Array that is used to return the supported dynamic flags names.
23  * @param[in] n
24  *   The number of elements in the names array.
25  *
26  * @return
27  *   The number of dynamic flags that were copied if not negative.
28  *   Otherwise:
29  *   - ENOMEM - not enough entries in the array
30  *   - EINVAL - invalid array entry
31  */
32 __rte_experimental
33 int rte_pmd_mlx5_get_dyn_flag_names(char *names[], unsigned int n);
34 
35 #endif
36