![]() |
![]() |
Enhanced MAC/Ethernet lookup information. More...
#include <pa.h>
Data Fields | |
uint32_t | validBitMap |
paMacAddr_t | src |
paMacAddr_t | dst |
uint16_t | vlan |
uint16_t | ethertype |
uint32_t | mplsTag |
uint16_t | inport |
Enhanced MAC/Ethernet lookup information.
paEthInfo2_t is the upgraded version of paEthInfo_t to support additional MAC lookup parameters over time while still maintaining backward compatibility. Future feature enhancements will be supported through this API data structure only.
Since not all fields are used all the time, validBitMap is used to specify which field is used for packet classification.
paMacAddr_t paEthInfo2_t::dst |
Destination MAC address
uint16_t paEthInfo2_t::ethertype |
Ethertype field.
uint16_t paEthInfo2_t::inport |
Input EMAC port number as specified by Ethernet MAC port
uint32_t paEthInfo2_t::mplsTag |
MPLS tag. Only the outer tag is examined
paMacAddr_t paEthInfo2_t::src |
Source MAC addresss
uint32_t paEthInfo2_t::validBitMap |
32-bit valid bitmap corresponding to each optional field as defined at PA ETH Info Valid Bit Definitions
uint16_t paEthInfo2_t::vlan |
VLAN tag VID field, 12 lsbs