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