Link Aggregation Group Management Functions


Enumerations

enum  nmf_lag_hash_flags {
  NMF_LAG_HASH_SA = 0x001, NMF_LAG_HASH_DA = 0x002, NMF_LAG_HASH_ETHTYPE = 0x004, NMF_LAG_HASH_VLAN_ID = 0x008,
  NMF_LAG_HASH_VLAN_PRI = 0x010, NMF_LAG_HASH_SRC_IP = 0x020, NMF_LAG_HASH_DST_IP = 0x040, NMF_LAG_HASH_SRC_TCP_PORT = 0x080,
  NMF_LAG_HASH_DST_TCP_PORT = 0x100, NMF_LAG_HASH_SRC_UDP_PORT = 0x200, NMF_LAG_HASH_DST_UDP_PORT = 0x400, NMF_LAG_HASH_L2_SYM = 0x40000000,
  NMF_LAG_HASH_IP_SYM = 0x80000000
}
 Create LAG distribution policy. More...

Functions

nmf_status_t nmf_lag_add (nmf_client_t clid, int slot, int *lag_id, char *name)
 Add a LAG.
nmf_status_t nmf_lag_rem (nmf_client_t clid, int slot, int lag_id)
 Remove a Link Aggregation Group.
nmf_status_t nmf_lag_list_get (nmf_client_t clid, int slot, nm_bv_t *lag_list)
 Get the LAG defined for this switch.
nmf_status_t nmf_lag_port_add (nmf_client_t clid, int slot, int lag, int port_num)
 Add a port to a LAG.
nmf_status_t nmf_lag_port_rem (nmf_client_t clid, int slot, int lag, int port_num)
 Remove a port from a LAG.
nmf_status_t nmf_lag_port_list_set (nmf_client_t clid, int slot, int lag, nm_bv_t *port_list)
 Set the port membership list for a LAG.
nmf_status_t nmf_lag_port_list_get (nmf_client_t clid, int slot, int lag, nm_bv_t *port_list)
 Get the port membership list for a LAG.
nmf_status_t nmf_lag_attr_set (nmf_client_t clid, int slot, int lag, enum nmf_lag_attr_id id, union nmf_lag_attr_value *attr)
 Set the LAG attribute.
nmf_status_t nmf_lag_attr_get (nmf_client_t clid, int slot, int lag, enum nmf_lag_attr_id id, union nmf_lag_attr_value *attr)
 Get the LAG attribute.

Enumeration Type Documentation

Create LAG distribution policy.

Create a LAG distribution policy.

Parameters:
clid The client handle.
slot The slot number
*lag Pointer to an integer to receive the distirbution policy number.
Enumerator:
NMF_LAG_HASH_SA  Include the Ethernet source address in the hash
NMF_LAG_HASH_DA  Include the Ethernet destination address in the hash
NMF_LAG_HASH_ETHTYPE  Include the Ethernet type in the hash.
NMF_LAG_HASH_VLAN_ID  Include the VLAN Id in the hash
NMF_LAG_HASH_VLAN_PRI  Include the VLAN Priority in the hash
NMF_LAG_HASH_SRC_IP  Include the IP source address in the hash
NMF_LAG_HASH_DST_IP  Include the IP destination address in the hash
NMF_LAG_HASH_SRC_TCP_PORT  Include the TCP source port in the hash
NMF_LAG_HASH_DST_TCP_PORT  Include the TCP destination port in the hash
NMF_LAG_HASH_SRC_UDP_PORT  Include the UDP source port in the hash
NMF_LAG_HASH_DST_UDP_PORT  Include the UDP destination port in the hash
NMF_LAG_HASH_L2_SYM  Use a symmetric hash that includes the Ethernet source and destination addresses. A symmetric hash will result in packets for the same pair of source and destination Ethernet addresses being hashed to the same LAG port.
NMF_LAG_HASH_IP_SYM  Use a symmetric hash that includes the IP source and destination addresses. A symmetric hash will result in packets for the same pair of source and destination IP addresses being hashed to the same LAG port.

Definition at line 1616 of file nmf.h.


Function Documentation

nmf_status_t nmf_lag_add ( nmf_client_t  clid,
int  slot,
int *  lag_id,
char *  name 
)

Add a LAG.

Parameters:
clid The client handle.
slot The slot number
*lag_id Pointer to an integer to receive the LAG number
name Pointer to descriptive name for the LAG
Returns:
NMF_OK Success

-NMF_ENOENT Slot not found.

nmf_status_t nmf_lag_attr_get ( nmf_client_t  clid,
int  slot,
int  lag,
enum nmf_lag_attr_id  id,
union nmf_lag_attr_value *  attr 
)

Get the LAG attribute.

Parameters:
clid The client handle.
slot The slot number
lag The LAG number.
id The attribute identifier
attr Pointer to the attribute value
Returns:
NMF_OK Success

-NMF_ENOENT Slot or LAG id not found.

nmf_status_t nmf_lag_attr_set ( nmf_client_t  clid,
int  slot,
int  lag,
enum nmf_lag_attr_id  id,
union nmf_lag_attr_value *  attr 
)

Set the LAG attribute.

Parameters:
clid The client handle.
slot The slot number
lag The LAG number.
id The attribute identifier
attr Pointer to the attribute value
Returns:
NMF_OK Success

-NMF_ENOENT Slot or LAG id not found.

nmf_status_t nmf_lag_list_get ( nmf_client_t  clid,
int  slot,
nm_bv_t lag_list 
)

Get the LAG defined for this switch.

Parameters:
clid The client handle.
slot The slot number
lag_list A bit vector representing the LAG list.
Returns:
NMF_OK Success

-NMF_ENOENT Slot not found.

nmf_status_t nmf_lag_port_add ( nmf_client_t  clid,
int  slot,
int  lag,
int  port_num 
)

Add a port to a LAG.

Parameters:
clid The client handle.
slot The slot number
lag The LAG number.
port_num The port number.
Returns:
NMF_OK Success

-NMF_ENOENT Slot not found.

nmf_status_t nmf_lag_port_list_get ( nmf_client_t  clid,
int  slot,
int  lag,
nm_bv_t port_list 
)

Get the port membership list for a LAG.

Parameters:
clid The client handle.
slot The slot number
lag The LAG number.
port_list The bit vector representing the port membership list.
Returns:
NMF_OK Success

-NMF_ENOENT Slot not found.

nmf_status_t nmf_lag_port_list_set ( nmf_client_t  clid,
int  slot,
int  lag,
nm_bv_t port_list 
)

Set the port membership list for a LAG.

Parameters:
clid The client handle.
slot The slot number
lag The LAG number.
port_list A bit vector representing the port membership list
Returns:
NMF_OK Success

-NMF_ENOENT Slot not found.

nmf_status_t nmf_lag_port_rem ( nmf_client_t  clid,
int  slot,
int  lag,
int  port_num 
)

Remove a port from a LAG.

Parameters:
clid The client handle.
slot The slot number
lag The LAG id.
port_num The port number.
Returns:
NMF_OK Success

-NMF_ENOENT Slot not found.

nmf_status_t nmf_lag_rem ( nmf_client_t  clid,
int  slot,
int  lag_id 
)

Remove a Link Aggregation Group.

Parameters:
clid The client handle.
slot The slot number
lag_id The LAG number to remove.
Returns:
NMF_OK Success

-NMF_ENOENT Slot not found.


Generated on Wed Sep 1 09:40:57 2010 for NetManage by  doxygen 1.5.6