1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(C) 2023 Marvell International Ltd.
*/
#ifndef __INCLUDE_RTE_NODE_UDP4_INPUT_API_H__
#define __INCLUDE_RTE_NODE_UDP4_INPUT_API_H__
/**
* @file rte_node_udp4_input_api.h
*
* @warning
* @b EXPERIMENTAL:
* All functions in this file may be changed or removed without prior notice.
*
* This API allows to control path functions of udp4_* nodes
* like udp4_input.
*
*/
#include <rte_common.h>
#include <rte_compat.h>
#include "rte_graph.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* UDP4 lookup next nodes.
*/
enum rte_node_udp4_input_next {
RTE_NODE_UDP4_INPUT_NEXT_PKT_DROP,
/**< Packet drop node. */
};
/**
* Add usr node to receive udp4 frames.
*
* @param usr_node
* Node registered by user to receive data.
*/
__rte_experimental
int rte_node_udp4_usr_node_add(const char *usr_node);
/**
* Add udpv4 dst_port to lookup table.
*
* @param dst_port
* Dst Port of packet to be added for consumption.
* @param next_node
* Next node packet to be added for consumption.
* @return
* 0 on success, negative otherwise.
*/
__rte_experimental
int rte_node_udp4_dst_port_add(uint32_t dst_port, rte_edge_t next_node);
#ifdef __cplusplus
}
#endif
#endif /* __INCLUDE_RTE_NODE_UDP4_API_H__ */
|