1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2020 Mellanox Technologies, Ltd
4 * This file contains the items, actions and attributes
5 * definition. And the methods to prepare and fill items,
6 * actions and attributes to generate rte_flow rule.
9 #ifndef FLOW_PERF_FLOW_GEN
10 #define FLOW_PERF_FLOW_GEN
18 #define HAIRPIN_QUEUE_ACTION FLOW_ACTION_MASK(0)
19 #define HAIRPIN_RSS_ACTION FLOW_ACTION_MASK(1)
22 #define INGRESS FLOW_ATTR_MASK(0)
23 #define EGRESS FLOW_ATTR_MASK(1)
24 #define TRANSFER FLOW_ATTR_MASK(2)
27 generate_flow(uint16_t port_id,
31 uint64_t *flow_actions,
33 uint32_t outer_ip_src,
37 struct rte_flow_error *error);
39 #endif /* FLOW_PERF_FLOW_GEN */