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