1*99a2dd95SBruce Richardson /* SPDX-License-Identifier: BSD-3-Clause 2*99a2dd95SBruce Richardson * Copyright(C) 2020 Marvell International Ltd. 3*99a2dd95SBruce Richardson */ 4*99a2dd95SBruce Richardson 5*99a2dd95SBruce Richardson #include <rte_graph.h> 6*99a2dd95SBruce Richardson 7*99a2dd95SBruce Richardson static uint16_t null(struct rte_graph * graph,struct rte_node * node,void ** objs,uint16_t nb_objs)8*99a2dd95SBruce Richardsonnull(struct rte_graph *graph, struct rte_node *node, void **objs, 9*99a2dd95SBruce Richardson uint16_t nb_objs) 10*99a2dd95SBruce Richardson { 11*99a2dd95SBruce Richardson RTE_SET_USED(node); 12*99a2dd95SBruce Richardson RTE_SET_USED(objs); 13*99a2dd95SBruce Richardson RTE_SET_USED(graph); 14*99a2dd95SBruce Richardson 15*99a2dd95SBruce Richardson return nb_objs; 16*99a2dd95SBruce Richardson } 17*99a2dd95SBruce Richardson 18*99a2dd95SBruce Richardson static struct rte_node_register null_node = { 19*99a2dd95SBruce Richardson .name = "null", 20*99a2dd95SBruce Richardson .process = null, 21*99a2dd95SBruce Richardson }; 22*99a2dd95SBruce Richardson 23*99a2dd95SBruce Richardson RTE_NODE_REGISTER(null_node); 24