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_tm_driver.h

Author

       Generated automatically by Doxygen for DPDK from the source code.

DPDK                                             Version 24.11.2                              rte_tm_driver.h(3)

Detailed Description

       RTE Generic Traffic Manager API (Driver Side)

       This file provides implementation helpers for internal use by PMDs, they are not intended to be exposed
       to applications and are not subject to ABI versioning.

       Definition in file rte_tm_driver.h.

Function Documentation

staticintrte_tm_error_set(structrte_tm_error*error,intcode,enumrte_tm_error_typetype,constvoid*cause,constchar*message)[inline],[static]
       Initialize generic error structure.

       This function also sets rte_errno to a given value.

       Parameterserror Pointer to error structure (may be NULL).
           code Related error code (rte_errno).
           type Cause field and error type.
           cause Object responsible for the error.
           message Human-readable error message.

       Returns
           Error code.

       Definition at line 314 of file rte_tm_driver.h.

   conststructrte_tm_ops*rte_tm_ops_get(uint16_tport_id,structrte_tm_error*error)
       Get generic traffic manager operations structure from a port

       Parametersport_id The port identifier of the Ethernet device.
           error Error details

       Returns
           The traffic manager operations structure associated with port_id on success, NULL otherwise.

Name

       rte_tm_driver.h

Synopsis

       #include <stdint.h>
       #include <rte_errno.h>
       #include 'rte_ethdev.h'
       #include 'ethdev_driver.h'
       #include 'rte_tm.h'

   Functions
       static int rte_tm_error_set (struct rte_tm_error *error, int code, enum rte_tm_error_type type, const
           void *cause, const char *message)
       const struct rte_tm_ops * rte_tm_ops_get (uint16_t port_id, struct rte_tm_error *error)

See Also