ETHFW API Guide
EthFwVlan_VlanCfg Struct Reference

Detailed Description

Static VLAN configuration.

Data Fields

uint16_t vlanId
 
uint32_t memberMask
 
uint32_t virtMemberMask
 
uint32_t regMcastFloodMask
 
uint32_t unregMcastFloodMask
 
uint32_t untagMask
 

Field Documentation

◆ vlanId

uint16_t EthFwVlan_VlanCfg::vlanId

VLAN id

◆ memberMask

uint32_t EthFwVlan_VlanCfg::memberMask

Member mask of hardware ports (Ethernet port and host port):

  • Use CPSW_ALE_MACPORT_TO_ALEPORT() to set the MAC port bitmask
  • Use CPSW_ALE_HOST_PORT_MASK to set the host port bitmask

◆ virtMemberMask

uint32_t EthFwVlan_VlanCfg::virtMemberMask

Member mask of virtual ports. Use ETHFW_BIT(ETHREMOTECFG_SWITCH_PORT_n) to create the member mask. Note: Currently, only one virtual port is supported

◆ regMcastFloodMask

uint32_t EthFwVlan_VlanCfg::regMcastFloodMask

Port mask where registered multicast packets will be flooded to. Must be same as EthFwVlan_VlanCfg::memberMask or a subset of it

◆ unregMcastFloodMask

uint32_t EthFwVlan_VlanCfg::unregMcastFloodMask

Port mask where unregistered multicast packets will be flooded to. Must be same as EthFwVlan_VlanCfg::memberMask or a subset of it

◆ untagMask

uint32_t EthFwVlan_VlanCfg::untagMask

Port mask where VLAN tag must be removed on egress. Must be same as EthFwVlan_VlanCfg::memberMask or a subset of it