beautypg.com

Data structure, Adlink_port_info_t, Adlink_portstat_t – ADLINK aTCA-N700 User Manual

Page 22

background image

Switch Manager API Programming Guide

22

Data Structure

adlink_port_info_t

typedef struct adlink_port_info_s

{

int enable;

int linkstatus;

int autoneg;

int speed;

int duplex;

UINT32 vlanfilter;

int untagged_priority;

UINT16 untagged_vlan;

int stp_state;

int pfm; /*port filter mode for multicast*/

int loopback;

int pause_tx;

int pause_rx;

int encap_mode;

int mcast_limit;

int mcast_limit_enable;

int bcast_limit;

int bcast_limit_enable;

int dlfbc_limit;

int dlfbc_limit_enable;

int frame_max;

UINT32 fault; /*link fault reason*/

}adlink_port_info_t;

Define the entry format of the port attribute table.

adlink_portstat_t

typedef struct adlink_portstat_s

{

UINT32 rx_byte_num;

UINT32 rx_byte_rate;

UINT32 rx_pkt_num;