OpenFlow Data Plane Abstraction (OF-DPA) API Guide and Reference Manual
Data Fields
ofdpaVlanFlowEntry_s Struct Reference

VLAN Flow Table Entry. More...

#include <ofdpa_datatypes.h>

Data Fields

OFDPA_FLOW_TABLE_ID_t gotoTableId
 Goto-Table instruction.
 
ofdpaVlanFlowMatch_t match_criteria
 
uint32_t mplsL2Port
 For MPLS L2 VPN classification.
 
uint16_t mplsL2PortAction
 If non-zero, set the MPLS L2 Port.
 
uint32_t mplsType
 MPLS Type value used in Set-field action.
 
uint32_t mplsTypeAction
 Non-zero value indicates Set-field MPLS Type.
 
uint16_t newTpid2
 The TPID for the new VLAN tag to be pushed.
 
uint16_t newVlanId
 VLAN ID for first Set Field VLAN_VID instruction.
 
uint16_t newVlanId2
 VLAN ID for second Set VLAN action.
 
uint16_t ovid
 Metadata representing the outer tag VLAN Id as a match field in the VLAN 1 Flow Table.
 
uint16_t ovidAction
 If non-zero, set the OVID meta-data field for matching in the VLAN 1 flow table.
 
uint16_t popVlanAction
 If non-zero, pop one VLAN tag.
 
uint16_t pushVlan2Action
 If non-zero, push a new VLAN tag using data in newTpid field.
 
uint16_t setVlanId2Action
 If non-zero and flow contains pushVlan2Action, set the VLAN ID in the new tag.
 
uint16_t setVlanIdAction
 Apply Actions Instructions.
 
uint32_t tunnelId
 For MPLS L2 VPN classification.
 
uint32_t tunnelIdAction
 If non-zero, set the Tunnel ID.
 
uint16_t vrf
 Must be the same in all rules for the same VLAN.
 
uint16_t vrfAction
 If non-zero, set the VRF.
 

Detailed Description

VLAN Flow Table Entry.

Definition at line 593 of file ofdpa_datatypes.h.

Field Documentation

OFDPA_FLOW_TABLE_ID_t ofdpaVlanFlowEntry_s::gotoTableId

Goto-Table instruction.

valid tables: OFDPA_FLOW_TABLE_ID_TERMINATION_MAC OFDPA_FLOW_TABLE_ID_MPLS_L2_PORT OFDPA_FLOW_TABLE_ID_VLAN_1 OFDPA_FLOW_TABLE_ID_MAINTENANCE_POINT or 0 to drop

Definition at line 607 of file ofdpa_datatypes.h.

uint32_t ofdpaVlanFlowEntry_s::mplsL2Port

For MPLS L2 VPN classification.

Definition at line 644 of file ofdpa_datatypes.h.

uint16_t ofdpaVlanFlowEntry_s::mplsL2PortAction

If non-zero, set the MPLS L2 Port.

Required for VPWS or VPLS.

Definition at line 643 of file ofdpa_datatypes.h.

uint16_t ofdpaVlanFlowEntry_s::newTpid2

The TPID for the new VLAN tag to be pushed.

Definition at line 630 of file ofdpa_datatypes.h.

uint16_t ofdpaVlanFlowEntry_s::newVlanId

VLAN ID for first Set Field VLAN_VID instruction.

Sets the VLAN id for an untagged port VLAN assignment rule. If the packet does not have a VLAN tag then one is pushed with the specified VLAN id and priority zero. If the VLAN tag exists, then the VLAN id will be replaced with the specified value.

Definition at line 620 of file ofdpa_datatypes.h.

uint16_t ofdpaVlanFlowEntry_s::newVlanId2

VLAN ID for second Set VLAN action.

Definition at line 633 of file ofdpa_datatypes.h.

uint16_t ofdpaVlanFlowEntry_s::ovid

Metadata representing the outer tag VLAN Id as a match field in the VLAN 1 Flow Table.

Definition at line 637 of file ofdpa_datatypes.h.

uint16_t ofdpaVlanFlowEntry_s::ovidAction

If non-zero, set the OVID meta-data field for matching in the VLAN 1 flow table.

Definition at line 635 of file ofdpa_datatypes.h.

uint16_t ofdpaVlanFlowEntry_s::popVlanAction

If non-zero, pop one VLAN tag.

Definition at line 627 of file ofdpa_datatypes.h.

uint16_t ofdpaVlanFlowEntry_s::pushVlan2Action

If non-zero, push a new VLAN tag using data in newTpid field.

Definition at line 629 of file ofdpa_datatypes.h.

uint16_t ofdpaVlanFlowEntry_s::setVlanIdAction

Apply Actions Instructions.

The effect of setting and pushing VLAN IDs depends upon the order of the instructions. At most two VLAN tags can be placed on a packet (implementation limitation). The action instructions are applied in the order listed in the flow. Thus a Push-Set-Push-Set sequence has a different effect than a Push-Push-Set-Set. The former adds a VLAN tag and sets it before adding an outer tag and setting it. The latter will add two tags and set the outer tag twice.If non-zero, set the VLAN ID

Definition at line 619 of file ofdpa_datatypes.h.

uint32_t ofdpaVlanFlowEntry_s::tunnelId

For MPLS L2 VPN classification.

Definition at line 647 of file ofdpa_datatypes.h.

uint32_t ofdpaVlanFlowEntry_s::tunnelIdAction

If non-zero, set the Tunnel ID.

Definition at line 646 of file ofdpa_datatypes.h.

uint16_t ofdpaVlanFlowEntry_s::vrf

Must be the same in all rules for the same VLAN.

Definition at line 641 of file ofdpa_datatypes.h.

uint16_t ofdpaVlanFlowEntry_s::vrfAction

If non-zero, set the VRF.

Definition at line 640 of file ofdpa_datatypes.h.


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