DPDK  25.11.0
rte_node_ip4_api.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2020 Marvell International Ltd.
3  */
4 
5 #ifndef __INCLUDE_RTE_NODE_IP4_API_H__
6 #define __INCLUDE_RTE_NODE_IP4_API_H__
7 
18 #include <rte_common.h>
19 #include <rte_compat.h>
20 
21 #include <rte_fib.h>
22 #include <rte_graph.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
29 #define RTE_IP4_OUTPUT_FEATURE_ARC_NAME "rte_ip4_output_arc"
30 #define RTE_IP4_OUTPUT_END_FEATURE_NAME "rte_if_tx_feature"
31 
38  RTE_NODE_IP4_LOOKUP_NEXT_IP4_LOCAL,
42 };
43 
52 };
53 
60 };
61 
67  struct rte_ip_frag_tbl *tbl;
73 };
74 
90 int rte_node_ip4_route_add(uint32_t ip, uint8_t depth, uint16_t next_hop,
91  enum rte_node_ip4_lookup_next next_node);
92 
108 int rte_node_ip4_rewrite_add(uint16_t next_hop, uint8_t *rewrite_data,
109  uint8_t rewrite_len, uint16_t dst_port);
110 
122 __rte_experimental
124 
136 __rte_experimental
137 int rte_node_ip4_fib_create(int socket, struct rte_fib_conf *conf);
138 
154 __rte_experimental
155 int rte_node_ip4_fib_route_add(uint32_t ip, uint8_t depth, uint16_t next_hop,
156  enum rte_node_ip4_lookup_next next_node);
157 
158 #ifdef __cplusplus
159 }
160 #endif
161 
162 #endif /* __INCLUDE_RTE_NODE_IP4_API_H__ */
uint32_t rte_node_t
Definition: rte_graph.h:42
rte_node_ip4_local_next
@ RTE_NODE_IP4_LOCAL_NEXT_PKT_DROP
@ RTE_NODE_IP4_LOCAL_NEXT_UDP4_INPUT
__rte_experimental int rte_node_ip4_reassembly_configure(struct rte_node_ip4_reassembly_cfg *cfg, uint16_t cnt)
int rte_node_ip4_route_add(uint32_t ip, uint8_t depth, uint16_t next_hop, enum rte_node_ip4_lookup_next next_node)
__rte_experimental int rte_node_ip4_fib_create(int socket, struct rte_fib_conf *conf)
rte_node_ip4_lookup_next
@ RTE_NODE_IP4_LOOKUP_NEXT_PKT_DROP
@ RTE_NODE_IP4_LOOKUP_NEXT_REWRITE
rte_node_ip4_reassembly_next
@ RTE_NODE_IP4_REASSEMBLY_NEXT_PKT_DROP
__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)
int rte_node_ip4_rewrite_add(uint16_t next_hop, uint8_t *rewrite_data, uint8_t rewrite_len, uint16_t dst_port)
struct rte_ip_frag_tbl * tbl
struct rte_ip_frag_death_row * dr