rte_node_ip4_api.h(3)
β¨ NAME β¨
okay so bestie, meet rte_node_ip4_api.h π β a header from DPDK's Library Functions Manual (you know the drill, section 3, iykyk) and it's literally the control-path bestie for the ip4_* graph nodes. no cap.
π¦ SYNOPSIS π¦
#include <rte_common.h>
#include <rte_compat.h>
#include <rte_fib.h>
#include <rte_graph.h>
π§Έ Data Structures
struct rte_node_ip4_reassembly_cfg
β¨ Macros
#define RTE_IP4_OUTPUT_FEATURE_ARC_NAME 'rte_ip4_output_arc'
π Enumerations
enum rte_node_ip4_lookup_next { RTE_NODE_IP4_LOOKUP_NEXT_REWRITE,
RTE_NODE_IP4_LOOKUP_NEXT_IP4_LOCAL,
RTE_NODE_IP4_LOOKUP_NEXT_PKT_DROP }
enum rte_node_ip4_local_next { RTE_NODE_IP4_LOCAL_NEXT_UDP4_INPUT,
RTE_NODE_IP4_LOCAL_NEXT_PKT_DROP }
enum rte_node_ip4_reassembly_next {
RTE_NODE_IP4_REASSEMBLY_NEXT_PKT_DROP }
π« 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)
__rte_experimental int rte_node_ip4_fib_create (int socket, struct
rte_fib_conf *conf)
__rte_experimental int rte_node_ip4_fib_route_add (uint32_t ip, uint8_t
depth, uint16_t next_hop, enum rte_node_ip4_lookup_next next_node)
πΈ Detailed Description πΈ
β οΈ Warning EXPERIMENTAL: All functions in this file may be changed or removed without prior notice. π so like... don't build your entire personality on this API, bestie, it could ghost you at any release.
This API allows to do control path functions of ip4_* nodes like ip4_lookup, ip4_rewrite. π¦
Definition in file rte_node_ip4_api.h.
π Macro Definition Documentation π
#define RTE_IP4_OUTPUT_FEATURE_ARC_NAME 'rte_ip4_output_arc'
IP4 output arc π₯
Definition at line 29 of file rte_node_ip4_api.h.
π¦ Enumeration Type Documentation π¦
enum rte_node_ip4_lookup_next
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. π (yes the blurb for the drop one says "IP Local node", we are just relaying it fr fr)
Definition at line 35 of file rte_node_ip4_api.h.
enum rte_node_ip4_local_next
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 47 of file rte_node_ip4_api.h.
enum rte_node_ip4_reassembly_next
IP4 reassembly next nodes.
Enumerator
RTE_NODE_IP4_REASSEMBLY_NEXT_PKT_DROPβ Packet drop node. π
Definition at line 57 of file rte_node_ip4_api.h.
π Function Documentation π
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. π₯
Parameters
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.
Returns
0 on success, negative otherwise. π«Ά
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. βοΈ
Parameters
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.
Returns
0 on success, negative otherwise. π«Ά
__rte_experimental int rte_node_ip4_reassembly_configure (struct rte_node_ip4_reassembly_cfg *cfg, uint16_t cnt)
Add reassembly node configuration data. π§©
Parameters
cfgβ Pointer to the configuration structure.cntβ Number of configuration structures passed.
Returns
0 on success, negative otherwise. π«Ά
__rte_experimental int rte_node_ip4_fib_create (int socket, struct rte_fib_conf *conf)
Create ipv4 FIB. π±
Parameters
socketβ NUMA socket for FIB memory allocation.confβ Structure containing FIB configuration.
Returns
0 on success, negative otherwise. π«Ά
__rte_experimental int rte_node_ip4_fib_route_add (uint32_t ip, uint8_t depth, uint16_t next_hop, enum rte_node_ip4_lookup_next next_node)
Add ipv4 route to FIB. π£οΈ
Parameters
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.
Returns
0 on success, negative otherwise. π«Ά
π«Ά Author π«Ά
Generated automatically by Doxygen for DPDK from the source code. π€ (a robot wrote the source of this, I just gave it the β¨main characterβ¨ edit)
and that's the whole page, bestie β brought to you by DPDK, Version 25.11.3 π stay slay, keep your packets moving, periodt. ππ¦β¨
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms