39 #ifndef __ELXU_COMMANDS_H__
40 #define __ELXU_COMMANDS_H__
47 typedef struct cmd_table_entry_s {
57 #define ASCII_VALUE_OFFSET 1000
59 #define CLEAR_COUNTER (ASCII_VALUE_OFFSET + 99)
60 #define CLEAR_OVERFLOW_FLAG (ASCII_VALUE_OFFSET + 100)
61 #define CLEAR_ALL_COUNTER (ASCII_VALUE_OFFSET + 101)
62 #define TEST_DUMP (ASCII_VALUE_OFFSET + 102)
63 #define FAT_DUMP (ASCII_VALUE_OFFSET + 103)
64 #define EFD_DUMP (ASCII_VALUE_OFFSET + 104)
65 #define ECD_DUMP (ASCII_VALUE_OFFSET + 105)
66 #define WWNN (ASCII_VALUE_OFFSET + 106)
67 #define WWPN (ASCII_VALUE_OFFSET + 107)
68 #define INITIATOR (ASCII_VALUE_OFFSET + 108)
69 #define TARGET (ASCII_VALUE_OFFSET + 109)
70 #define CONNECTION_HANDLE (ASCII_VALUE_OFFSET + 111)
71 #define CONNECTION_ID (ASCII_VALUE_OFFSET + 114)
72 #define CMD_HOSTNAME (ASCII_VALUE_OFFSET + 115)
73 #define LINKCFG (ASCII_VALUE_OFFSET + 116)
74 #define BUFSIZE (ASCII_VALUE_OFFSET + 117)
75 #define SAVED (ASCII_VALUE_OFFSET + 118)
76 #define CLRSAVED (ASCII_VALUE_OFFSET + 119)
77 #define PROFILE_ID (ASCII_VALUE_OFFSET + 120)
78 #define WQES (ASCII_VALUE_OFFSET + 121)
79 #define CQES (ASCII_VALUE_OFFSET + 122)
80 #define RQES (ASCII_VALUE_OFFSET + 123)
81 #define MQES (ASCII_VALUE_OFFSET + 124)
82 #define EQES (ASCII_VALUE_OFFSET + 125)
83 #define QENTRIES (ASCII_VALUE_OFFSET + 126)
84 #define PROTOCOL_NAME (ASCII_VALUE_OFFSET + 127)
85 #define FIRMWARE_RESET (ASCII_VALUE_OFFSET + 128)
86 #define FDB_DUMP (ASCII_VALUE_OFFSET + 129)
87 #define SFP_DIAG_DATA (ASCII_VALUE_OFFSET + 130)
88 #define LOOPBACK_TYPE (ASCII_VALUE_OFFSET + 131)
89 #define RETRY_COUNT (ASCII_VALUE_OFFSET + 132)
90 #define LINKSPEED (ASCII_VALUE_OFFSET + 133)
91 #define LINKTOPOLOGY (ASCII_VALUE_OFFSET + 134)
92 #define CHAP_TYPE (ASCII_VALUE_OFFSET + 135)
93 #define SFP_TRANSCEIVER (ASCII_VALUE_OFFSET + 136)
94 #define VLAN_ID (ASCII_VALUE_OFFSET + 137)
95 #define HBA_ID (ASCII_VALUE_OFFSET + 138)
96 #define PORT_ID (ASCII_VALUE_OFFSET + 149)
97 #define TRUNK_MODE (ASCII_VALUE_OFFSET + 150)
98 #define PORT_MIGRATION (ASCII_VALUE_OFFSET + 151)
100 #define OCS_CLUST_TARGET_KEY_RETCNT (9999)
101 #define OCS_ISCSI_PORTAL_GRPTAG (1)
102 #define OCS_ISCSI_TCP_PORT (3260)
195 #define ELXU_CMD_VLAN_SHOW_BUFFER_SIZE (4096)
201 "file-info -f <filename>",
202 "Provide information about the given firmware file"
205 "list [--host <hostname>]",
206 "List discovered devices"
209 "driver-info [-d <devicenum>] [--host <hostname>]",
210 "Provide information about the driver associated with a device"
213 "read <objname> [-d <devicenum>] [--host <hostname>] [-f <filename>]",
214 "Read an object file from a device"
217 "write -f <filename> [-d <devicenum>] [--host <hostname>]",
218 "Write a firmware file to a device"
222 "Report the version of this program"
225 "cmp -f <filename> [-d <devicenum>] [--host <hostname>]",
226 "Compare the firmware in a file with the firmware on a device"
229 "dump [--fat | --efd | --ecd | --ecdtest] [-d <devicenum>] [--host <hostname>] [-f <filename>]",
230 "Retrieve a dump from a device. For Skyhawk an optional dump type\n"
231 "(--fat, --efd, --ecd, --ecdtest) can be specified. The default is ecd."
234 "efdc [-d <devicenum>] [--host <hostname>]",
235 "Report EFD capabilities for a device"
238 "gendump [--fdb] [-d <devicenum>] [--host <hostname>]",
239 "Cause a device to generate a dump. --fdb option for Function specific non disruptive dump"
242 "dump-to-host [--fdb] [-d <devicenum>] [-f <filename>]",
243 "Cause a device to generate a dump and transfer it directly to host\n"
244 "memory (Lancer only). If no filename is given the dump will be\n"
245 "written to the file dump.bin. --fdb option for Function specific non disruptive dump"
248 "objenum [-d <devicenum>] [--host <hostname>]",
249 "Enumerate filesystem objects on a device"
252 "sfp [-d <devicenum>] [--host <hostname>]",
253 "Report SFP data for a device, --sfp_diag_data to get SFP Diagnostics data from transceiver\n"
254 "--sfp_xceiver_data Decode SFP transceiver for a device"
257 "boardtemp [-d <devicenum>]",
"Read board temperature"
260 "read-status [-d <devicenum>] [--host <hostname>] [--cc]",
261 "Report device status and optionally clear counters."
264 "read-link-status [-d <devicenum>] [--host <hostname>] [--clof] [--clrc]",
265 "Report device link status. Optional flags can be used to clear\n"
266 "overflow counters or clear all counters."
269 "dport-dynamic-mode-status [-d <devicenum>]",
270 "Query dynamic dport mode status"
273 "set-dport-dynamic-mode (enable | disable) [-d <devicenum>]",
274 "Enable/Disable dport dynamic mode"
277 "get-dport-stats [-d <devicenum>] [--host <hostname>]",
278 "Enable on-demand dport mode and get dport stats"
281 "diag-loopback-tests [-d <devicenum>] [--host <hostname>] [--loopback_type <loopback type> --retry_count <No of times to re-run loopback test>]",
282 "Run diagnostic loopback tests with specificed loopback type\n1 - Internal loopback\n2 - External loopback\n3 - PCI loopback"
285 "read-rev [-d <devicenum>] [--host <hostname>]",
286 "Report device HW and FW revisions"
289 "driver-dump [-d <devicenum>] [--wqes] [--cqes] [--mqes] [--rqes] [--eqes] [--qentries <entries to dump>] [--host <hostname>] [--bufsize <buffer size>] [--saved] [--clrsaved]",
290 "Retrieve driver debug information for device."
293 "mgmt-info [-d <devicenum>] [--host <hostname>]",
294 "Retrieve driver management information for device"
297 "connection-info [-d <devicenum>] [--host <hostname>] [--connection-handle <handle>]",
298 "If a connection handle is provided, reports information on that\n"
299 "connection. If no connection handle is provided, displays a list\n"
300 "of open connections."
303 "iclusttgt [-d <devicenum>] <add/del/clear/show>",
304 "\niSCSI cluster target table will have other targets\n"
305 "within the same network entity. "
306 "Target will send this list of items to\n"
307 "initiator during send targets discovery phase.\n"
308 "Supported sub-commands:\n"
309 "\tadd <target-name> <target-address>\n"
310 "\tdel <target-name> <target-address>\n"
315 "route <--add|--del|--show> [ip-address] [net mask] [gateway]"
316 " [-d <devicenum>] [--host <hostname>]",
317 "Add or delete routing table entry.\n"
318 "route <--add|--del> requires following sub-options\n"
319 "<ip-address> IP address to add to the route table\n"
320 "<net mask> Subnet mask to add to the route table\n"
321 "<gateway> Gateway to add to the route table\n"
324 "vlan <--add|--del|--show> [-d <devicenum>] [--host <hostname>]",
325 "Add or delete VLAN-id to an iSCSI adapter.\n"
326 "Required sub-options format:\n"
332 "add-ip <ip address> <net mask> [--vlan-id <vlan_id>] "
333 "[-d <devicenum>] [--host <hostname>]",
334 "Add an additional IP address to an iSCSI adapter.\n"
335 "[--vlan-id <vlan_id>] Add IP address for a given vlan_id interface.\n"
336 "The IP address and net mask\n"
337 "should be in either IPv4 or IPv6 format ###.###.###.### or\n"
338 "####:####:####:####:####:####:####:####"
341 "show-ips <ip version 4/6> [-d <devicenum>] [--host <hostname>]",
342 "Show the IP addresses (4 or 6) assigned to an iSCSI adapter.\n"
345 "remove-ip <ip address> [--vlan-id <vlan_id>] [-d <devicenum>] [--host <hostname>]",
346 "Remove an IP address from an iSCSI adapter.\n"
347 "[--vlan-id <vlan_id>] Remove IP address for a given vlan_id interface.\n"
348 "The IP address should be in either IPv4 or IPv6 format ###.###.###.### or\n"
349 "####:####:####:####:####:####:####:####"
352 "set-gateway <ip address> [-d <devicenum>] [--host <hostname>]",
353 "Set the gateway address for an iSCSI adapter. The IP address\n"
354 "should be in either IPv4 or IPv6 format ###.###.###.### or\n"
355 "####:####:####:####:####:####:####:####"
358 "get-gateway [-d <devicenum>] [--host <hostname>]",
359 "Get the gateway address for an iSCSI adapter. The IP address\n"
360 "should be in either IPv4 or IPv6 format ###.##"
363 "add-chap <name>:<secret> [-d <devicenum>] [--host <hostname>] "
364 "[--chap-type <incoming|outgoing>]",
365 "Add a chap name and secret to an iSCSI adapter.\n"
366 "--chap-type indicates whether CHAP is incoming or outgoing, default is incoming.\n"
369 "remove-chap <name> [-d <devicenum>] [--host <hostname>] "
370 "[--chap-type <incoming|outgoing>]",
371 "Remove a chap name from an iSCSI adapter.\n"
372 "--chap-type indicates whether CHAP is incoming or outgoing, default is incoming.\n"
375 "show-chap [-d <devicenum>] [--host <hostname>]",
376 "Show CHAP users list from an iSCSI adapter."
379 "set-require-chap ( true | false )[-d <devicenum>] [--host <hostname>]",
380 "Cause the iSCIS driver to require or not require CHAP authentication."
383 "get-require-chap [-d <devicenum>] [--host <hostname>]",
384 "Get the current state of the require-CHAP flag in the driver."
387 "enable-jumbo [-d <devicenum>] [--host <hostname>]",
388 "Enable jumbo frames on an iSCSI adapter."
391 "disable-jumbo [-d <devicenum>] [--host <hostname>]",
392 "Disable jumbo frames on an iSCSI adapter."
395 "enable-header-digest [-d <devicenum>] [--host <hostname>]",
396 "Enable header digest on an iSCSI adapter."
399 "disable-header-digest [-d <devicenum>] [--host <hostname>]",
400 "Disable header digest on an iSCSI adapter."
403 "enable-data-digest [-d <devicenum>] [--host <hostname>]",
404 "Enable data digest on an iSCSI adapter."
407 "disable-data-digest [-d <devicenum>] [--host <hostname>]",
408 "Disable data digest on an iSCSI adapter."
411 "set-tcp-window-size <size> [-d <devicenum>] [--host <hostname>]",
412 "Set the TCP window size on an iSCSI adapter."
415 "get-tcp-window-size [-d <devicenum>] [--host <hostname>]",
416 "Get the TCP window size from an iSCSI adapter."
419 "set-tcp-window-scale <scale> [-d <devicenum>] [--host <hostname>]",
420 "Set the TCP window scale on an iSCSI adapter."
423 "get-tcp-window-scale [-d <devicenum>] [--host <hostname>]",
424 "Get the TCP window scale from an iSCSI adapter."
427 "set-max-connections <max_connections> [-d <devicenum>] [--host <hostname>]",
428 "Set the maximum connections per session on an iSCSI adapter."
431 "get-max-connections [-d <devicenum> [--host <hostname>]",
432 "Get the maximum connections per session from an iSCSI adapter."
435 "start-listen <ip-address> [-d <devicenum>] [--host <hostname>]",
436 "Start listening for connections on an existing IP address on an iSCSI adapter."
439 "stop-listen <ip-address> [-d <devicenum>] [--host <hostname>]",
440 "Stop listening for connections on an existing IP address on an iSCSI adapter."
448 "set-mac <mac_address> [-d <devicenum>] [--host <hostname>]",
449 "Soft assign MAC address. The MAC address should be in the\n"
450 "format ##:##:##:##:##:##"
454 "set-nv-mac <mac_address> [-d <devicenum>] [--host <hostname>]",
455 "Set permanent MAC address. The MAC address should be in the\n"
456 "format ##:##:##:##:##:##"
459 "show-mac [-d <devicenum>] [--host <hostname>]",
460 "Show the MAC address for a device."
463 "show-wwn [-d <devicenum>] [--host <hostname>]",
464 "Show the worldwide names for a device."
467 "set-wwn (--wwpn <WWN> | --wwnn <WWN>) [-d <devicenum>] [--host <hostname>]",
468 "Set the worldwide node name or worldwide port name or both for a device.\n"
469 "The WWN should be in the format ##:##:##:##:##:##:##:##"
472 "create-vport [<wwnn> <wwpn>] (--target | --initiator) [-d <devicenum>] [--host <hostname>]",
473 "Create an NPIV vport. Worldwide names, if provided, should be\n"
474 "in the format: ##:##:##:##:##:##:##:##. Example: 10:00:00:00:c9:01:02:03\n"
475 "If worldwide names are omitted they will be assigned by the firmware\n"
476 "Either --target, --initiator, or both must be specified"
479 "remove-vport <wwnn> <wwpn> [-d <devicenum>] [--host <hostname>]",
480 "Remove an NPIV vport.\n"
481 "Worldwide names should be "
482 "in the format: ##:##:##:##:##:##:##:##.\nExample: 10:00:00:00:c9:01:02:03"
485 "linkcfg-set [-d <devicenum>] [--host <hostname>] --linkcfg <link config>",
486 "Set link configuration. Where <link config> is: "
496 "linkcfg-get [-d <devicenum>] [--host <hostname>]",
497 "Display link configuration."
500 "linkspeed-set [-d <devicenum>] [--host <hostname>] --linkspeed <link speed>",
501 "Set link speed where <link speed > is:"
502 "0 - Auto | 1000 - 10G | 2000 - 2G | 4000 - 4G | 8000 - 8G | 16000 - 16G | 32000 - 32G"
505 "linkspeed-get [-d <devicenum>] [--host <hostname>]",
506 "Display link speed."
510 "linktopology-set [-d <devicenum>] [--host <hostname>] --linktopology <link topology",
511 "Set link topology where <link topology > is:"
512 "0 - Auto | 1 - NPORT | 2 - LOOP."
515 "linktopology-get [-d <devicenum>] [--host <hostname>]",
516 "Display link topology."
519 "get-profile-list [-d <devicenum>] [--host <hostname>]",
520 "Get list of available profiles."
523 "get-active-profile [-d <devicenum>] [--host <hostname>]",
524 "Get currently active profile."
527 "set-active-profile --profile-id <profile_id> [-d <devicenum>] [--host <hostname>]",
528 "Change the active profile."
531 "get-port-protocol [-d <devicenum>] [--host <hostname>]",
532 "Get the current protocol for the port"
535 "set-port-protocol [-d <devicenum>] [--host <hostname>] --protocol (iscsi | fcoe)",
536 "Sets the protocol for a Skyhawk port"
539 "firmware-reset [-d <devicenum>] [--host <hostname>]",
540 "Generate a firmware reset on the HBA"
543 "port-migration [-d <devicenum>] [--host <hostname>]",
544 "Port migration on specific physical port of HBA"
547 "get-parity-stats [-d <devicenum>] [--host <hostname>] [--cc]",
548 "Retrieve ITCM parity stats and clear the counters optionally"
551 "unload [--host <hostname>]",
552 "gracefully unload a user space driver"
555 "node-abort-cnt [-d <devicenum>] [--host <hostname>]",
556 "Retrieve sum of the aborts for all ocs/domain/port/nodes."
559 "fw-diag-log [-d <devicenum>] [--host <hostname>] [-f <filename>]",
560 "Extract host buffer based firmware diagnostic logs to a file"
563 "get-fdmi-hba-list [-d <devicenum>] [--host <hostname>]",
564 "Retrieve list of FDMI HBA identifiers from switch."
567 "get-fdmi-hba-info [-d <devicenum>] [--host <hostname>] --hba_identifier"
568 "<HBA identifier Name>",
569 "Retrieve HBA info which matches with HBA identifier from switch."
572 "get-fdmi-port-list [-d <devicenum>] [--host <hostname>] --hba_identifier"
573 "<HBA identifier Name>",
574 "Retrieve list of FDMI port identifiers exists in HBA identifier from switch"
577 "get-fdmi-port-info [-d <devicenum>] [--port_identifier <port identifier name>]",
578 "Retrieve FDMI Port attribute info which matches with port name"
581 "set-trunk-mode [-d <devicenum>] [--mode <trunk mode>]",
582 "Set trunk mode\n\t0: Disabled\n\t1: 2 links per trunk\n\t2: 4 links per trunk"
585 "show-trunk-config [-d <devicenum>]",
590 "Show usage information for a command"
int elxu_cmd_node_abort_cnt(int argc, char **argv)
Command handler for the node-abort-cnt command.
int elxu_cmd_help(int argc, char **argv)
Command handler for the help command.
#define OCS_CONFIG_LINKCFG_4X10G
linkcfg strings
int elxu_cmd_disable_data_digest(int argc, char **argv)
Command handler for the disable-data-digest command.
int elxu_cmd_set_nv_mac_pt(int argc, char **argv)
Command handler for the set-nv-mac command.
int elxu_cmd_read_rev(int argc, char **argv)
Command handler for the read-rev command.
int elxu_cmd_show_mac_pt(int argc, char **argv)
Command handler for the show-mac command for the elx_pt driver.
int elxu_cmd_driver_info(int argc, char **argv)
Command handler for the driver-info command.
int elxu_cmd_set_gateway(int argc, char **argv)
Command handler for the set-gateway command.
int elxu_cmd_set_active_profile(int argc, char **argv)
Command handler for the set-active-profile command.
int elxu_cmd_set_mac_ocs(int argc, char **argv)
Command handler for the set-mac command.
int elxu_cmd_sfp(int argc, char **argv)
Command handler for the sfp command.
int elxu_cmd_diag_loopback_tests(int argc, char **argv)
int elxu_cmd_set_tcp_window_size(int argc, char **argv)
Command handler for the set-tcp-window-size command.
int elxu_cmd_get_profile_list(int argc, char **argv)
Command handler for the get-profile-list command.
int elxu_cmd_firmware_reset(int argc, char **argv)
Command handler for the firmware-reset command.
int elxu_cmd_remove_ip(int argc, char **argv)
Command handler for the remove-ip command.
int elxu_cmd_remove_vport(int argc, char **argv)
Command handler for the remove-vport command.
int elxu_cmd_add_chap(int argc, char **argv)
Command handler for the add-chap command.
int elxu_cmd_set_active_profile_pt(int argc, char **argv)
Command handler for the set-active-profile command for the elx_pt driver.
int elxu_cmd_get_fdmi_hba_list(int argc, char **argv)
Command handler for the elxu_cmd_get_fdmi_hba_list command.
#define OCS_CONFIG_LINKCFG_1X40G
int elxu_cmd_start_listen(int argc, char **argv)
Command handler for start-listen.
int elxu_cmd_enable_data_digest(int argc, char **argv)
Command handler for enable-data-digest.
int elxu_cmd_delayed_ack_timer(int argc, char **argv)
Command handler for the delayed-ack-timer command.
int elxu_cmd_gendump(int argc, char **argv)
Command handler for the gendump command.
int elxu_cmd_read(int argc, char **argv)
Command handler for the read command.
int elxu_cmd_set_linkcfg(int argc, char **argv)
Command handler for the linkcfg-set command.
int elxu_cmd_get_linkspeed(int argc, char **argv)
Command handler for the linkspeed-get command.
int elxu_cmd_show_ips(int argc, char **argv)
Command handler for the show-ips command.
int elxu_cmd_list(int argc, char **argv)
Command handler for the list command.
int elxu_cmd_dump_to_host(int argc, char **argv)
Command handler for the dump command.
int elxu_cmd_dump(int argc, char **argv)
Command handler for the dump command.
int elxu_cmd_file_info(int argc, char **argv)
Command handler for the file-info command.
int elxu_cmd_get_tcp_window_size(int argc, char **argv)
Command handler for get-tcp-window-size.
#define OCS_CONFIG_LINKCFG_4X8G
int elxu_cmd_set_tcp_window_scale(int argc, char **argv)
Command handler for set-tcp-window-scale.
int elxu_cmd_set_dport_dynamic_mode(int argc, char **argv)
int elxu_cmd_get_linktopology(int argc, char **argv)
Command handler for the linktopology-get command.
int elxu_cmd_get_gateway(int argc, char **argv)
Command handler for the get-gateway command.
handler_t nodriver_handler
int elxu_cmd_get_trunk_config(int argc, char **argv)
Command handler for elxu_cmd_get_trunk_config command.
int elxu_cmd_set_require_chap(int argc, char **argv)
Command handler for set-require-chap.
int elxu_cmd_objenum(int argc, char **argv)
Command handler for the objenum command.
int elxu_cmd_unload(int argc, char **argv)
Command handler for user space driver unload.
int elxu_cmd_disable_jumbo(int argc, char **argv)
Command handler for the disable-jumbo command.
int elxu_cmd_get_active_profile_pt(int argc, char **argv)
Command handler for the get-active-profile command for the elx_pt driver.
int elxu_cmd_driver_dump(int argc, char **argv)
Command handler for the driver-dump command.
int elxu_cmd_set_linktopology(int argc, char **argv)
Command handler for the linktopology-set command.
int elxu_cmd_port_migration(int argc, char **argv)
Command handler for the port-migration command.
int elxu_cmd_constrain_window(int argc, char **argv)
Command handler for the constrain-window command.
int elxu_cmd_enable_jumbo(int argc, char **argv)
Command handler for the enable-jumbo command.
static cmd_table_entry_t cmd_table[]
int elxu_cmd_get_linkcfg(int argc, char **argv)
Command handler for the linkcfg-get command.
int elxu_cmd_show_chap_list(int argc, char **argv)
Command handler for show-chap.
int elxu_cmd_create_vport(int argc, char **argv)
Command handler for the create-vport command.
int elxu_cmd_stop_listen(int argc, char **argv)
Command handler for stop-listen.
int elxu_cmd_fw_diagnostic_log(int argc, char **argv)
Command handler for the fw-diag-log command.
int elxu_cmd_mgmt_info(int argc, char **argv)
Command handler for the mgmt-info command.
#define OCS_CONFIG_LINKCFG_4X1G
int elxu_cmd_ack_frequency(int argc, char **argv)
Command handler for the ack-frequency command.
int elxu_cmd_board_temp(int argc, char **argv)
Command handler for the board temperature.
int elxu_cmd_get_fdmi_port_list(int argc, char **argv)
Command handler for the elxu_cmd_get_fdmi_port_list command.
int elxu_cmd_set_linkspeed(int argc, char **argv)
Command handler for the link-speed-set command.
int elxu_cmd_read_link_status(int argc, char **argv)
Command handler for the read-link-status command.
int elxu_cmd_cmp(int argc, char **argv)
Command handler for the cmp command.
#define OCS_CONFIG_LINKCFG_2X16G
int elxu_cmd_set_wwn(int argc, char **argv)
Command handler for the set-wwn command.
int elxu_cmd_set_max_connections(int argc, char **argv)
Command handler for set-max-connections.
int elxu_cmd_get_profile_list_pt(int argc, char **argv)
Command handler for the get-profile-list command for the elx_pt driver.
int elxu_cmd_efdc(int argc, char **argv)
Command handler for the efdc command.
int elxu_cmd_add_ip(int argc, char **argv)
Command handler for the add-ip command.
#define OCS_CONFIG_LINKCFG_2X10G
int elxu_cmd_read_status(int argc, char **argv)
Command handler for the read-status command.
int elxu_cmd_get_max_connections(int argc, char **argv)
Command handler for get-max-connections.
int elxu_cmd_get_fdmi_port_info(int argc, char **argv)
Command handler for the elxu_cmd_get_fdmi_port_info command.
void usage()
Show program usage.
int elxu_cmd_remove_chap(int argc, char **argv)
Command handler for remove-chap.
int elxu_cmd_set_port_protocol(int argc, char **argv)
Command handler for the set-port-protocol command.
int elxu_cmd_get_dynamic_dport_status(int argc, char **argv)
int elxu_cmd_vlan(int argc, char **argv)
Command handler for the vlan command.
int elxu_cmd_get_dport_stats(int argc, char **argv)
Command handler for the get-dport-stats command.
int elxu_cmd_get_fdmi_hba_info(int argc, char **argv)
Command handler for the elxu_cmd_get_fdmi_hba_info command.
int elxu_cmd_disable_header_digest(int argc, char **argv)
Command handler for the disable-header-digest comand.
int elxu_cmd_get_active_profile(int argc, char **argv)
Command handler for the get-active-profile command.
int elxu_cmd_iclusttgt(int argc, char **argv)
int(* handler_t)(int, char **)
int elxu_cmd_show_mac_ocs(int argc, char **argv)
Command handler for the show-mac command for the OCS drivers.
int elxu_cmd_connection_info(int argc, char **argv)
Command handler for the connection-info command.
int elxu_cmd_enable_header_digest(int argc, char **argv)
Command handler for enable-header-digest.
int elxu_cmd_get_parity_stats(int argc, char **argv)
Command handler for the get-parity-stats command.
int elxu_cmd_show_wwn(int argc, char **argv)
Command handler for the show-wwn command.
int elxu_cmd_version(int argc, char **argv)
Command handler for the version command.
int elxu_cmd_write(int argc, char **argv)
Command handler for the write command.
#define OCS_CONFIG_LINKCFG_2X10G_2X8G
int elxu_cmd_get_require_chap(int argc, char **argv)
Command handler for get-require-chap.
int elxu_cmd_firmware_reset_pt(int argc, char **argv)
Send a firmware reset via the elx_pt driver.
int elxu_cmd_route(int argc, char **argv)
Command handler for the route command.
int elxu_cmd_get_tcp_window_scale(int argc, char **argv)
Command handler for get-tcp-window-scale.
int elxu_cmd_get_port_protocol(int argc, char **argv)
Command handler for the get-port-protocol command.
int elxu_cmd_set_trunk_mode(int argc, char **argv)
Command handler for elxu_cmd_set_trunk_mode command.