ETHFW API Guide
Port Mirroring Support

Introduction

Data Structures

struct  EthFwPortMirroring_SrcPortMirrorCfg
 Source port mirroring configuration. More...
 
struct  EthFwPortMirroring_DstPortMirrorCfg
 Destination port mirroring configuration. More...
 
struct  EthFwPortMirroring_TblEntryPortMirrorCfg
 Table entry port mirroring configuration. More...
 
union  EthFwPortMirroringMode
 Union of modes/types of port mirroring possible. More...
 
struct  EthFwPortMirroring_Cfg
 Port mirroring configuration. More...
 

Functions

int32_t EthFwPortMirroring_init (Enet_Handle hEnet, EthFwPortMirroring_Cfg *portMirCfg)
 Enables/Disables port mirroring. More...
 

Enumerations

enum  EthFwPortMirroringType { SRC_PORT_MIRRORING = 0U, DST_PORT_MIRRORING, TBL_ENTRY_PORT_MIRRORING, DISABLE_PORT_MIRRORING }
 Enum for port mirroring type. More...
 

Enumeration Type Documentation

◆ EthFwPortMirroringType

Enum for port mirroring type.

Enumerator
SRC_PORT_MIRRORING 

Source port mirroring

DST_PORT_MIRRORING 

Destination port mirroring

TBL_ENTRY_PORT_MIRRORING 

Table entry port mirroring

DISABLE_PORT_MIRRORING 

Port Mirroring disabled

Function Documentation

◆ EthFwPortMirroring_init()

int32_t EthFwPortMirroring_init ( Enet_Handle  hEnet,
EthFwPortMirroring_Cfg portMirCfg 
)

Enables/Disables port mirroring.

Parameters
hEnetHandle to CPSW
portMirCfgPort mirroring configuration
Returns
ETHFW_SOK if port mirroring was enabled/disabled successfully or a negative error code if failed.