Rate This Document
Findability
Accuracy
Completeness
Readability

flexda_insert_hydra_key

Function

Inserts a Hydra key into the key list of a hardware flow table.

Syntax

int flexda_insert_hydra_key(struct rte_flow_item *hw_key, int idx, void *data, size_t size, uint32_t hydra_type)

Parameters

Parameter

Type

Input/Output

Description

hw_key

struct rte_flow_item *

Input

Key list of the hardware flow table.

idx

int

Input

If idx is less than 0, the system automatically retrieves an available location to insert the key. If idx is greater than or equal to 0, the key is inserted at the specified location.

data

void *

Input

Content of the custom key.

size

size_t

Input

Size of the custom key.

hydra_type

uint32_t

Input

Type of the custom key.

Return value

int

Output

The function returns 0 upon successful execution; otherwise, it returns an error code.

  • The data structure cannot contain pointers.
  • Repeatedly calling the function at the same location (where idx is non-negative and identical) will trigger an error and return an error code.

Example

Refer to "Procedure 1: Developing OVS Control Plane Code" in the BeiMing 26.0.RC1 FlexDA Programming Framework Developer Guide.