beautypg.com

Adlink_nic_config_set (), Adlink_nic_config_get(), Adlink_port_pipe_get () – ADLINK aTCA-N700 User Manual

Page 26: Adlink_port_pipe_set(), Adlink_port_pipe_clear(), Adlink_nic_config_set () adlink_nic_config_get()

background image

Switch Manager API Programming Guide

26

RETURN

See the description of status_t in Section 1.

adlink_nic_config_set ()

adlink_nic_config_get()

PROTOTYPE

status_t adlink_nic_config_set(adl_nic_config_set_cmd_t *cmd);

status_t adlink_nic_config_get(adl_nic_config_get_cmd_t *cmd, adl_nic_config_info_t *info);

DESCRIPTION

The function ‘get’ is used to get configuration of a NIC, including running status and IP address.

The function ‘set’ is used to configure a NIC.

PARAMETERS

cmd

[IN] NIC name and operation code;

info

[OUT]

NIC

information;

RETURN

See the description of status_t in Section 1.

adlink_port_pipe_get ()

adlink_port_pipe_set()

adlink_port_pipe_clear()

PROTOTYPE

status_t adlink_port_pipe_set(UINT32 src_port,UINT32 dst_port);

status_t adlink_port_pipe_clear(UINT32 src_port);

status_t adlink_port_pipe_get(UINT32 src_port,UINT32 *dst_port);

DESCRIPTION

These functions are used to pipe a specific port to another one. “pipe” will directly deliver

ingress traffic on a specific port to another one.