NDN-DPDK
High-Speed Named Data Networking Forwarder
Loading...
Searching...
No Matches
flowdef.c File Reference
#include "flowdef.h"
#include "../core/base16.h"
#include "../core/logger.h"
#include "hdr-impl.h"

Macros

#define MASK(field)
#define APPEND(typ, field)
#define APPEND(typ, field)

Functions

 N_LOG_INIT (EthFlowDef)
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.
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 .

Macro Definition Documentation

◆ APPEND [1/2]

#define APPEND ( typ,
field )
Value:
AppendAction(flow, &i, RTE_FLOW_ACTION_TYPE_##typ, &flow->field##Act)

◆ APPEND [2/2]

#define APPEND ( typ,
field )
Value:
AppendItem(flow, &i, RTE_FLOW_ITEM_TYPE_##typ, &flow->field##Spec, &flow->field##Mask, \
sizeof(flow->field##Spec))

◆ MASK

#define MASK ( field)
Value:
memset(&(field), 0xFF, sizeof(field))

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 .

◆ N_LOG_INIT()

N_LOG_INIT ( EthFlowDef )