41691a16a4e6108b92b8460b41540336bf1a3a47
[dpdk.git] / drivers / net / mlx5 / linux / mlx5_flow_os.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2020 Mellanox Technologies, Ltd
3  */
4
5 #ifndef RTE_PMD_MLX5_FLOW_OS_H_
6 #define RTE_PMD_MLX5_FLOW_OS_H_
7
8 #include "mlx5_flow.h"
9
10 #ifdef HAVE_IBV_FLOW_DV_SUPPORT
11 extern const struct mlx5_flow_driver_ops mlx5_flow_dv_drv_ops;
12 #endif
13
14 /**
15  * Get OS enforced flow type. MLX5_FLOW_TYPE_MAX means "non enforced type".
16  *
17  * @return
18  *   Flow type (MLX5_FLOW_TYPE_MAX)
19  */
20 static inline enum mlx5_flow_drv_type
21 mlx5_flow_os_get_type(void)
22 {
23         return MLX5_FLOW_TYPE_MAX;
24 }
25
26 /**
27  * Check if item type is supported.
28  *
29  * @param item
30  *   Item type to check.
31  *
32  * @return
33  *   True is this item type is supported, false if not supported.
34  */
35 static inline bool
36 mlx5_flow_os_item_supported(int item __rte_unused)
37 {
38         return true;
39 }
40
41 /**
42  * Check if action type is supported.
43  *
44  * @param action
45  *   Action type to check.
46  *
47  * @return
48  *   True is this action type is supported, false if not supported.
49  */
50 static inline bool
51 mlx5_flow_os_action_supported(int action __rte_unused)
52 {
53         return true;
54 }
55
56 #endif /* RTE_PMD_MLX5_FLOW_OS_H_ */