logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rte_node_eth_api.h

Author

       Generated automatically by Doxygen for DPDK from the source code.

DPDK                                             Version 24.11.2                           rte_node_eth_api.h(3)

Detailed Description

WarningEXPERIMENTAL: All functions in this file may be changed or removed without prior notice.

       This API allows to setup ethdev_rx and ethdev_tx nodes and its queue associations.

       Definition in file rte_node_eth_api.h.

Function Documentation

intrte_node_eth_config(structrte_node_ethdev_config*cfg,uint16_tcnt,uint16_tnb_graphs)
       Initializes ethdev nodes.

       Parameterscfg Array of ethdev config that identifies which port's ethdev_rx and ethdev_tx nodes need to be
           created and queue association.
           cnt Size of cfg array.
           nb_graphs Number of graphs that will be used.

       Returns
           0 on successful initialization, negative otherwise.

   __rte_experimentalintrte_node_ethdev_rx_next_update(rte_node_tid,constchar*edge_name)
       Update ethdev rx next node.

       Parametersid Node id whose edge is to be updated.
           edge_name Name of the next node.

       Returns

           • EINVAL: Either of input parameters are invalid

           • ENOMEM: If memory allocation failed

           • 0 on successful initialization.

Name

       rte_node_eth_api.h

Synopsis

       #include <rte_compat.h>
       #include <rte_common.h>
       #include <rte_graph.h>
       #include <rte_mempool.h>

   DataStructures
       struct rte_node_ethdev_configFunctions
       int rte_node_eth_config (struct rte_node_ethdev_config *cfg, uint16_t cnt, uint16_t nb_graphs)
       __rte_experimental int rte_node_ethdev_rx_next_update (rte_node_t id, const char *edge_name)

See Also