API Reference Manual  1.48.0
odp_pmr_create_opt_t Struct Reference

Packet Matching Rule creation options. More...

#include <classification.h>

Collaboration diagram for odp_pmr_create_opt_t:
[legend]

Data Fields

odp_pmr_param_tterms
 PMR terms. More...
 
int num_terms
 Number of terms in the match rule.
 
uint64_t mark
 Classification mark value. More...
 
uint32_t priority
 Rule priority. More...
 

Detailed Description

Packet Matching Rule creation options.

Definition at line 326 of file api/spec/classification.h.

Field Documentation

◆ terms

odp_pmr_param_t* odp_pmr_create_opt_t::terms

PMR terms.

Array of odp_pmr_param_t entries, one entry per term desired. Use odp_cls_pmr_param_init() to initialize parameters into their default values.

Definition at line 332 of file api/spec/classification.h.

◆ mark

uint64_t odp_pmr_create_opt_t::mark

Classification mark value.

Value to be set in the CLS mark of a packet when the packet matches this Packet Matching Rule. The default value is zero. The maximum value is indicated in odp_cls_capability_t::max_mark capability.

Definition at line 343 of file api/spec/classification.h.

◆ priority

uint32_t odp_pmr_create_opt_t::priority

Rule priority.

When multiple PMRs match a packet, a matching rule with the highest priority is selected. If there are multiple such rules, then it is implementation specific which one is selected.

Larger priority value corresponds to higher priority. The value must not be larger than odp_cls_capability_t::max_pmr_priority. The default value is 0.

Definition at line 355 of file api/spec/classification.h.


The documentation for this struct was generated from the following file: