Functions, Adl_nic_config_get_cmd_t, Adlink_port_info_get () – ADLINK aTCA-N700 User Manual

Page 24: Adlink_port_status_set ()

Advertising
background image

Switch Manager API Programming Guide

24

UINT32 mask;

UINT32 status;

}adl_nic_config_info_t;

Define the format of retrieved NIC info.

adl_nic_config_get_cmd_t

typedef struct adl_nic_config_get_cmd {

char

if_name[TAPNAMSIZ];

}adl_nic_config_get_cmd_t;

Define the format of the get NIC info command parameter.

Functions

adlink_port_info_get ()

PROTOTYPE

status_t adlink_port_info_get (UINT32 port, adlink_port_info_t *info);

DESCRIPTION

This function is used to get port information in an integrated data structure.

PARAMETERS

port

[IN] The port id;

info

[OUT] Port attributes will be filled in this structure;

RETURN

See the description of status_t in Section 1.

adlink_port_status_set ()

PROTOTYPE

status_t adlink_port_status_set (adlink_set_port_status_cmd_t *cmd);

DESCRIPTION

This function is used to set various port attributes, including administrative status,

auto-negotiation mode, duplex mode, speed, default vid, default cos and MTU.

Advertising