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. | |
| enum nmf_lag_hash_flags |
Create LAG distribution policy.
Create a LAG distribution policy.
| clid | The client handle. | |
| slot | The slot number | |
| *lag | Pointer to an integer to receive the distirbution policy number. |
| nmf_status_t nmf_lag_add | ( | nmf_client_t | clid, | |
| int | slot, | |||
| int * | lag_id, | |||
| char * | name | |||
| ) |
Add a LAG.
| 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 |
-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.
| clid | The client handle. | |
| slot | The slot number | |
| lag | The LAG number. | |
| id | The attribute identifier | |
| attr | Pointer to the attribute value |
-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.
| clid | The client handle. | |
| slot | The slot number | |
| lag | The LAG number. | |
| id | The attribute identifier | |
| attr | Pointer to the attribute value |
-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.
| clid | The client handle. | |
| slot | The slot number | |
| lag_list | A bit vector representing the LAG list. |
-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.
| clid | The client handle. | |
| slot | The slot number | |
| lag | The LAG number. | |
| port_num | The port number. |
-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.
| clid | The client handle. | |
| slot | The slot number | |
| lag | The LAG number. | |
| port_list | The bit vector representing the port membership list. |
-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.
| clid | The client handle. | |
| slot | The slot number | |
| lag | The LAG number. | |
| port_list | A bit vector representing the port membership list |
-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.
| clid | The client handle. | |
| slot | The slot number | |
| lag | The LAG id. | |
| port_num | The port number. |
-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.
| clid | The client handle. | |
| slot | The slot number | |
| lag_id | The LAG number to remove. |
-NMF_ENOENT Slot not found.
1.5.6