net/mlx5: add OS specific flow related utilities
[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 /**
9  * Check if item type is supported.
10  *
11  * @param item
12  *   Item type to check.
13  *
14  * @return
15  *   True is this item type is supported, false if not supported.
16  */
17 static inline bool
18 mlx5_flow_os_item_supported(int item __rte_unused)
19 {
20         return true;
21 }
22
23 /**
24  * Check if action type is supported.
25  *
26  * @param action
27  *   Action type to check.
28  *
29  * @return
30  *   True is this action type is supported, false if not supported.
31  */
32 static inline bool
33 mlx5_flow_os_action_supported(int action __rte_unused)
34 {
35         return true;
36 }
37
38 #endif /* RTE_PMD_MLX5_FLOW_OS_H_ */