Adlink_port_filter_mac_add (), Adlink_port_statistic_get (), Adlink_port_filter_mac_del () – ADLINK aTCA-N700 User Manual

Page 25: Adlink_port_statistic_clear ()

Advertising
background image

Switch Manager API Programming Guide

25

PARAMETERS

cmd

[IN] Port attributes to be set;

RETURN

See the description of status_t in Section 1.

adlink_port_filter_mac_add ()

adlink_port_filter_mac_del ()

PROTOTYPE

status_t adlink_port_filter_mac_add (adlink_mac_entry_t *entry);

status_t adlink_port_filter_mac_del (adlink_mac_entry_t *entry);

DESCRIPTION

These functions are used to add and delete MAC filter entries. MAC filters will filter ingress

frames with specific source/destination MAC addresses on specific ports.

PARAMETERS

entry

[IN] The MAC entry to be filtered;

RETURN

See the description of status_t in Section 1.

adlink_port_statistic_get ()

adlink_port_statistic_clear ()

PROTOTYPE

status_t adlink_port_statistic_get (UINT32 port, adlink_portstat_t *stat);

status_t adlink_port_statistic_clear (UINT32 port);

DESCRIPTION

The function ‘get’ is used to get statistics of a port, including count and rate in both byte unit and

packet unit. The function ‘clear’ is used to reset all counters.

PARAMETERS

port

[IN] The port id;

stat

[OUT] Statistics data will be filled in this structure;

Advertising