eb4df25f53
Current support for unique data is to compile with config.h var FIXED_VALUES as 0, and this is only supported on compilation time, as a result the user may use only single mode for each compilation. Starting with this commit the user will have the ability to use this feature on the fly by using this new option: --unique-data Example of unique data usage: Insert many rules with different encap data for a flows that have encap action in it. Signed-off-by: Wisam Jaddo <wisamm@nvidia.com> Acked-by: Alexander Kozyrev <akozyrev@nvidia.com>
26 lines
656 B
C
26 lines
656 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright 2020 Mellanox Technologies, Ltd
|
|
*
|
|
* This file contains the functions definitions to
|
|
* generate each supported action.
|
|
*/
|
|
|
|
#ifndef FLOW_PERF_ACTION_GEN
|
|
#define FLOW_PERF_ACTION_GEN
|
|
|
|
#include <rte_flow.h>
|
|
|
|
#include "config.h"
|
|
|
|
#define RTE_IP_TYPE_UDP 17
|
|
#define RTE_IP_TYPE_GRE 47
|
|
#define RTE_VXLAN_GPE_UDP_PORT 250
|
|
#define RTE_GENEVE_UDP_PORT 6081
|
|
|
|
void fill_actions(struct rte_flow_action *actions, uint64_t *flow_actions,
|
|
uint32_t counter, uint16_t next_table, uint16_t hairpinq,
|
|
uint64_t encap_data, uint64_t decap_data, uint8_t core_idx,
|
|
bool unique_data);
|
|
|
|
#endif /* FLOW_PERF_ACTION_GEN */
|