9001a863f4
The old design was using the bit mask to identify items, action and attributes. So it was all based on the order of the code itself, to place the order of the actions, items & attributes inside the flows. Such design will lead into many failures when some PMD support order different than other PMD, in the end the rules will fail to create. Also sometimes the user needs to have one action before other actions and vice versa, so using new design of arrays that take user order into consideration make more sense. After this patch, we start supporting inner items and more than one instance of same action. Signed-off-by: Wisam Jaddo <wisamm@mellanox.com> Acked-by: Alexander Kozyrev <akozyrev@nvidia.com>
19 lines
453 B
C
19 lines
453 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"
|
|
|
|
void fill_actions(struct rte_flow_action *actions, uint64_t *flow_actions,
|
|
uint32_t counter, uint16_t next_table, uint16_t hairpinq);
|
|
|
|
#endif /* FLOW_PERF_ACTION_GEN */
|