DPDK
24.07.0
|
Go to the source code of this file.
Data Structures | |
struct | rte_node_ip4_reassembly_cfg |
Functions | |
int | rte_node_ip4_route_add (uint32_t ip, uint8_t depth, uint16_t next_hop, enum rte_node_ip4_lookup_next next_node) |
int | rte_node_ip4_rewrite_add (uint16_t next_hop, uint8_t *rewrite_data, uint8_t rewrite_len, uint16_t dst_port) |
__rte_experimental int | rte_node_ip4_reassembly_configure (struct rte_node_ip4_reassembly_cfg *cfg, uint16_t cnt) |
This API allows to do control path functions of ip4_* nodes like ip4_lookup, ip4_rewrite.
Definition in file rte_node_ip4_api.h.
IP4 lookup next nodes.
Enumerator | |
---|---|
RTE_NODE_IP4_LOOKUP_NEXT_REWRITE | Rewrite node. |
RTE_NODE_IP4_LOOKUP_NEXT_PKT_DROP | IP Local node. Number of next nodes of lookup node. |
Definition at line 30 of file rte_node_ip4_api.h.
IP4 Local next nodes.
Enumerator | |
---|---|
RTE_NODE_IP4_LOCAL_NEXT_UDP4_INPUT | ip4 Local node. |
RTE_NODE_IP4_LOCAL_NEXT_PKT_DROP | Packet drop node. |
Definition at line 42 of file rte_node_ip4_api.h.
IP4 reassembly next nodes.
Enumerator | |
---|---|
RTE_NODE_IP4_REASSEMBLY_NEXT_PKT_DROP | Packet drop node. |
Definition at line 52 of file rte_node_ip4_api.h.
int rte_node_ip4_route_add | ( | uint32_t | ip, |
uint8_t | depth, | ||
uint16_t | next_hop, | ||
enum rte_node_ip4_lookup_next | next_node | ||
) |
Add ipv4 route to lookup table.
ip | IP address of route to be added. |
depth | Depth of the rule to be added. |
next_hop | Next hop id of the rule result to be added. |
next_node | Next node to redirect traffic to. |
int rte_node_ip4_rewrite_add | ( | uint16_t | next_hop, |
uint8_t * | rewrite_data, | ||
uint8_t | rewrite_len, | ||
uint16_t | dst_port | ||
) |
Add a next hop's rewrite data.
next_hop | Next hop id to add rewrite data to. |
rewrite_data | Rewrite data. |
rewrite_len | Length of rewrite data. |
dst_port | Destination port to redirect traffic to. |
__rte_experimental int rte_node_ip4_reassembly_configure | ( | struct rte_node_ip4_reassembly_cfg * | cfg, |
uint16_t | cnt | ||
) |
Add reassembly node configuration data.
cfg | Pointer to the configuration structure. |
cnt | Number of configuration structures passed. |