DPDK  20.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 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #include <rte_common.h>
24 
35 };
36 
52 __rte_experimental
53 int rte_node_ip4_route_add(uint32_t ip, uint8_t depth, uint16_t next_hop,
54  enum rte_node_ip4_lookup_next next_node);
55 
71 __rte_experimental
72 int rte_node_ip4_rewrite_add(uint16_t next_hop, uint8_t *rewrite_data,
73  uint8_t rewrite_len, uint16_t dst_port);
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif /* __INCLUDE_RTE_NODE_IP4_API_H__ */
rte_node_ip4_route_add
__rte_experimental 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_NODE_IP4_LOOKUP_NEXT_PKT_DROP
@ RTE_NODE_IP4_LOOKUP_NEXT_PKT_DROP
Definition: rte_node_ip4_api.h:31
RTE_NODE_IP4_LOOKUP_NEXT_MAX
@ RTE_NODE_IP4_LOOKUP_NEXT_MAX
Definition: rte_node_ip4_api.h:33
rte_common.h
rte_node_ip4_rewrite_add
__rte_experimental int rte_node_ip4_rewrite_add(uint16_t next_hop, uint8_t *rewrite_data, uint8_t rewrite_len, uint16_t dst_port)
RTE_NODE_IP4_LOOKUP_NEXT_REWRITE
@ RTE_NODE_IP4_LOOKUP_NEXT_REWRITE
Definition: rte_node_ip4_api.h:29
rte_node_ip4_lookup_next
rte_node_ip4_lookup_next
Definition: rte_node_ip4_api.h:28