#include <stdlib.h>
#include "../common.h"
#include "../jump_flow.h"
#include "snippet_switch_granularity.h"
static void
snippet_init_switch_granularity(void)
{
flow_attr.ingress = 0;
flow_attr.transfer = 1;
flow_attr.group = 1;
flow_attr.priority = 1;
}
static void
snippet_match_switch_granularity_create_actions(uint16_t port_id,
struct rte_flow_action *action)
{
create_jump_flow(port_id, 1, &error);
if (represented_port == NULL)
fprintf(stderr, "Failed to allocate memory for represented_port\n");
action[0].
conf = represented_port;
}
static void
snippet_match_switch_granularity_create_patterns(
struct rte_flow_item *pattern)
{
}
static struct rte_flow_template_table *
create_table_switch_granularity(
__rte_unused uint16_t port_id,
{
return NULL;
}
@ RTE_FLOW_ACTION_TYPE_END
@ RTE_FLOW_ACTION_TYPE_REPRESENTED_PORT
@ RTE_FLOW_ITEM_TYPE_REPRESENTED_PORT
enum rte_flow_action_type type
enum rte_flow_item_type type