DPDK  17.05.2
Data Structures | Functions
rte_flow_driver.h File Reference
#include <stdint.h>
#include <rte_errno.h>
#include "rte_ethdev.h"
#include "rte_flow.h"

Go to the source code of this file.

Data Structures

struct  rte_flow_ops


static int rte_flow_error_set (struct rte_flow_error *error, int code, enum rte_flow_error_type type, const void *cause, const char *message)
struct rte_flow_opsrte_flow_ops_get (uint8_t port_id, struct rte_flow_error *error)

Detailed Description

RTE generic flow 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_flow_driver.h.

Function Documentation

static int rte_flow_error_set ( struct rte_flow_error error,
int  code,
enum rte_flow_error_type  type,
const void *  cause,
const char *  message 

Initialize generic flow error structure.

This function also sets rte_errno to a given value.

[out]errorPointer to flow error structure (may be NULL).
codeRelated error code (rte_errno).
typeCause field and error types.
causeObject responsible for the error.
messageHuman-readable error message.
Error code.

Definition at line 145 of file rte_flow_driver.h.

struct rte_flow_ops* rte_flow_ops_get ( uint8_t  port_id,
struct rte_flow_error error 

Get generic flow operations structure from a port.

port_idPort identifier to query.
[out]errorPointer to flow error structure.
The flow operations structure associated with port_id, NULL in case of error, in which case rte_errno is set and the error structure contains additional details.