| rte_port_in_action.h(3) | Library Functions Manual | rte_port_in_action.h(3) |
rte_port_in_action.h
#include <stdint.h>
#include <rte_compat.h>
#include <rte_table_hash.h>
#include 'rte_pipeline.h'
struct rte_port_in_action_fltr_config
struct rte_port_in_action_fltr_params
struct rte_port_in_action_lb_config
struct rte_port_in_action_lb_params
#define RTE_PORT_IN_ACTION_FLTR_KEY_SIZE 16
#define RTE_PORT_IN_ACTION_LB_KEY_SIZE_MIN 8
#define RTE_PORT_IN_ACTION_LB_KEY_SIZE_MAX 64
#define RTE_PORT_IN_ACTION_LB_TABLE_SIZE 16
enum rte_port_in_action_type {
RTE_PORT_IN_ACTION_FLTR = 0, RTE_PORT_IN_ACTION_LB }
__rte_experimental struct rte_port_in_action_profile *
rte_port_in_action_profile_create (uint32_t socket_id)
__rte_experimental int rte_port_in_action_profile_free (struct
rte_port_in_action_profile *profile)
__rte_experimental int rte_port_in_action_profile_action_register
(struct rte_port_in_action_profile *profile, enum
rte_port_in_action_type type, void *action_config)
__rte_experimental int rte_port_in_action_profile_freeze (struct
rte_port_in_action_profile *profile)
__rte_experimental struct rte_port_in_action *
rte_port_in_action_create (struct rte_port_in_action_profile
*profile, uint32_t socket_id)
__rte_experimental int rte_port_in_action_free (struct
rte_port_in_action *action)
__rte_experimental int rte_port_in_action_params_get (struct
rte_port_in_action *action, struct rte_pipeline_port_in_params
*params)
__rte_experimental int rte_port_in_action_apply (struct
rte_port_in_action *action, enum rte_port_in_action_type type, void
*action_params)
RTE Pipeline Input Port Actions
This API provides a common set of actions for pipeline input ports to speed up application development.
Each pipeline input port can be assigned an action handler to be executed on every input packet during the pipeline execution. The pipeline library allows the user to define his own input port actions by providing customized input port action handler. While the user can still follow this process, this API is intended to provide a quicker development alternative for a set of predefined actions.
The typical steps to use this API are:
Warning
Definition in file rte_port_in_action.h.
RTE_PORT_IN_ACTION_FLTR Filter key size (number of bytes)
Definition at line 73 of file rte_port_in_action.h.
RTE_PORT_IN_ACTION_LB Load balance key size min (number of bytes).
Definition at line 113 of file rte_port_in_action.h.
Load balance key size max (number of bytes).
Definition at line 116 of file rte_port_in_action.h.
Load balance table size.
Definition at line 119 of file rte_port_in_action.h.
Input port actions.
Enumerator
Definition at line 61 of file rte_port_in_action.h.
Input port action profile create.
Parameters
Returns
Input port action profile free.
Parameters
Returns
Input port action profile action register.
Parameters
Returns
Input port action profile freeze.
Once this function is called successfully, the given profile enters the frozen state with the following immediate effects: no more actions can be registered for this profile, so the profile can be instantiated to create input port action objects.
Parameters
Returns
See also
Input port action create.
Instantiates the given input port action profile to create an input port action object.
Parameters
Returns
Input port action free.
Parameters
Returns
Input port params get.
Parameters
Returns
Input port action apply.
Parameters
Returns
Generated automatically by Doxygen for DPDK from the source code.
| Version 24.11.3 | DPDK |