AM64x MCU+ SDK  08.00.00

Introduction

Functions

int32_t PN_setStaticFilterTable (PRUICSS_HwAttrs const *pruicssHwAttrs, const uint8_t *macAddr, uint8_t ctrl, uint8_t portNumber, uint8_t table)
 API to enable/disable the reception & forward for a Multicast address in port multicast filter tables. More...
 
int32_t PN_loadStaticTable (PRUICSS_HwAttrs const *pruicssHwAttrs, const uint32_t *staticTable, uint8_t staticTableLength, uint8_t staticTableType, uint8_t portNumber)
 PN_loadStaticTable API to load multicast static table to ICSS memory. More...
 

Function Documentation

◆ PN_setStaticFilterTable()

int32_t PN_setStaticFilterTable ( PRUICSS_HwAttrs const *  pruicssHwAttrs,
const uint8_t *  macAddr,
uint8_t  ctrl,
uint8_t  portNumber,
uint8_t  table 
)

API to enable/disable the reception & forward for a Multicast address in port multicast filter tables.

Parameters
[in]pruicssHwAttrsPRUICSS HW Attributes for base addresses
[in]macAddrMAC Address for which the reception or forward has to be enabled or disabled
Following are the valid ranges of multicast addresses:
(01-0E-CF-00-00-00 TO 01-0E-CF-00-05-FF)
(01-15-4E-00-00-00 TO 01-15-4E-00-00-1F)
(01-80-C2-00-00-00 TO 01-80-C2-00-00-1F)
[in]ctrlA MAC address can be configured using one of four valid configuration for reception and foward
For example, if MAC address is called with NO_RCV_NO_FWD then it's reception and forwarding will be disabled
NO_RCV_NO_FWD
RCV_NO_FWD
NO_RCV_FWD
RCV_FWD
[in]portNumberPort on which reception and forwarding is configured for a MAC address PORT1 (1)
PORT2 (2)
[in]tableThere are two sets of table one for BLOCKING state and second one for FORWARDING state
BLOCKING
FORWARDING
Return values
0on success

◆ PN_loadStaticTable()

int32_t PN_loadStaticTable ( PRUICSS_HwAttrs const *  pruicssHwAttrs,
const uint32_t *  staticTable,
uint8_t  staticTableLength,
uint8_t  staticTableType,
uint8_t  portNumber 
)

PN_loadStaticTable API to load multicast static table to ICSS memory.

API to load multicast static table to ICSS memory

Parameters
[in]pruicssHwAttrsPRUICSS HW Attributes for base addresses
[in]staticTablestart address of the static table
[in]staticTableLengthlength of the static table in bytes
[in]staticTableTypetype of static table 0 == Forward Table, 1 == Receive Table
[in]portNumberAllowed values : ICSS_EMAC_PORT_1, ICSS_EMAC_PORT_2
Return values
0on sucess or <0 on failure