DPDK
18.05.1
|
Go to the source code of this file.
Functions | |
static int | rte_mtr_error_set (struct rte_mtr_error *error, int code, enum rte_mtr_error_type type, const void *cause, const char *message) |
struct rte_mtr_ops * | rte_mtr_ops_get (uint16_t port_id, struct rte_mtr_error *error) |
RTE Generic Traffic Metering and Policing 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_mtr_driver.h.
|
inlinestatic |
Initialize generic error structure.
This function also sets rte_errno to a given value.
[out] | error | Pointer to error structure (may be NULL). |
[in] | code | Related error code (rte_errno). |
[in] | type | Cause field and error type. |
[in] | cause | Object responsible for the error. |
[in] | message | Human-readable error message. |
Definition at line 156 of file rte_mtr_driver.h.
|
read |
Get generic traffic metering and policing operations structure from a port
[in] | port_id | The port identifier of the Ethernet device. |
[out] | error | Error details |