0c8f1f4ab9
Introduce raw-encap and raw-decap actions. The two actions are added in command line options, and for the data to encap or decap the user need to parse it within the command line. All values of raw-encap data is set to be fixed values. Usage example: --raw-encap=ether,ipv4,udp,vxlan Signed-off-by: Wisam Jaddo <wisamm@mellanox.com> Acked-by: Alexander Kozyrev <akozyrev@nvidia.com>
25 lines
619 B
C
25 lines
619 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);
|
|
|
|
#endif /* FLOW_PERF_ACTION_GEN */
|