LCOV - code coverage report
Current view: top level - lib/node - pkt_drop.c (source / functions) Hit Total Coverage
Test: Code coverage Lines: 1 4 25.0 %
Date: 2025-02-01 18:54:23 Functions: 1 2 50.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       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                 :          0 : 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                 :          0 :         rte_pktmbuf_free_bulk((struct rte_mbuf **)objs, nb_objs);
      16                 :            : 
      17                 :          0 :         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                 :        252 : RTE_NODE_REGISTER(pkt_drop_node);

Generated by: LCOV version 1.14