NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Typedefs | Enumerations | Functions
flowdef.h File Reference
#include "../iface/enum.h"
#include "locator.h"

Go to the source code of this file.

Data Structures

struct  EthFlowDef
 EthFace rte_flow pattern. More...
 

Typedefs

typedef struct EthFlowDef EthFlowDef
 EthFace rte_flow pattern. More...
 
typedef enum EthFlowDefResult EthFlowDefResult
 

Enumerations

enum  { EthFlowDef_MaxVariant = 8 , EthFlowDef_NPatterns = 7 }
 
enum  EthFlowDefResult { EthFlowDefResultValid = RTE_BIT32(0) , EthFlowDefResultMarked = RTE_BIT32(1) }
 

Functions

EthFlowDefResult EthFlowDef_Prepare (EthFlowDef *flow, const EthLocator *loc, int variant, uint32_t mark, const uint16_t queues[], int nQueues)
 Prepare rte_flow definition from locator. More...
 
void EthFlowDef_DebugPrint (const EthFlowDef *flow, const char *msg)
 
void EthFlowDef_UpdateError (const EthFlowDef *flow, struct rte_flow_error *error)
 Update error->cause to be an offset if it's within flow . More...
 

Typedef Documentation

◆ EthFlowDef

typedef struct EthFlowDef EthFlowDef

EthFace rte_flow pattern.

◆ EthFlowDefResult

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
EthFlowDef_MaxVariant 
EthFlowDef_NPatterns 

◆ EthFlowDefResult

Enumerator
EthFlowDefResultValid 
EthFlowDefResultMarked 

Function Documentation

◆ EthFlowDef_DebugPrint()

void EthFlowDef_DebugPrint ( const EthFlowDef flow,
const char *  msg 
)

◆ EthFlowDef_Prepare()

EthFlowDefResult EthFlowDef_Prepare ( EthFlowDef flow,
const EthLocator loc,
int  variant,
uint32_t  mark,
const uint16_t  queues[],
int  nQueues 
)

Prepare rte_flow definition from locator.

Parameters
[out]flowFlow definition.
locLocator.
variantVariant index within [0:EthFlowDef_MaxVariant).
markFDIR mark ID.
queuesDispatched queues.

◆ EthFlowDef_UpdateError()

void EthFlowDef_UpdateError ( const EthFlowDef flow,
struct rte_flow_error *  error 
)

Update error->cause to be an offset if it's within flow .