DPDK  22.03.0
rte_pmd_mlx5.h
Go to the documentation of this file.
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 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 #define RTE_PMD_MLX5_FINE_GRANULARITY_INLINE "mlx5_fine_granularity_inline"
21 
36 __rte_experimental
37 int rte_pmd_mlx5_get_dyn_flag_names(char *names[], unsigned int n);
38 
39 #define MLX5_DOMAIN_BIT_NIC_RX (1 << 0)
40 #define MLX5_DOMAIN_BIT_NIC_TX (1 << 1)
41 #define MLX5_DOMAIN_BIT_FDB (1 << 2)
61 __rte_experimental
62 int rte_pmd_mlx5_sync_flow(uint16_t port_id, uint32_t domains);
63 
67 #define MLX5_EXTERNAL_RX_QUEUE_ID_MIN (UINT16_MAX - 1000 + 1)
68 
88 __rte_experimental
89 int rte_pmd_mlx5_external_rx_queue_id_map(uint16_t port_id, uint16_t dpdk_idx,
90  uint32_t hw_idx);
91 
108 __rte_experimental
109 int rte_pmd_mlx5_external_rx_queue_id_unmap(uint16_t port_id,
110  uint16_t dpdk_idx);
111 
112 #ifdef __cplusplus
113 }
114 #endif
115 
116 #endif /* RTE_PMD_PRIVATE_MLX5_H_ */
__rte_experimental int rte_pmd_mlx5_external_rx_queue_id_unmap(uint16_t port_id, uint16_t dpdk_idx)
__rte_experimental int rte_pmd_mlx5_sync_flow(uint16_t port_id, uint32_t domains)
__rte_experimental int rte_pmd_mlx5_get_dyn_flag_names(char *names[], unsigned int n)
__rte_experimental int rte_pmd_mlx5_external_rx_queue_id_map(uint16_t port_id, uint16_t dpdk_idx, uint32_t hw_idx)