summaryrefslogtreecommitdiff
path: root/usr/src/cmd/fcinfo
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/fcinfo')
-rw-r--r--usr/src/cmd/fcinfo/fcinfo.h1
-rw-r--r--usr/src/cmd/fcinfo/fcoeadm.c17
2 files changed, 15 insertions, 3 deletions
diff --git a/usr/src/cmd/fcinfo/fcinfo.h b/usr/src/cmd/fcinfo/fcinfo.h
index 4047ccaf4b..00e61c28b5 100644
--- a/usr/src/cmd/fcinfo/fcinfo.h
+++ b/usr/src/cmd/fcinfo/fcinfo.h
@@ -119,7 +119,6 @@ extern "C" {
#define TARGET_MODE 0x00000010
/* FCOE */
-#define FCOE_MAX_MAC_NAME_LEN 32
#define FCOE_USER_RAW_FRAME_SIZE 224
typedef struct _tgtPortWWNList {
diff --git a/usr/src/cmd/fcinfo/fcoeadm.c b/usr/src/cmd/fcinfo/fcoeadm.c
index 340d33dfa9..7b92f76673 100644
--- a/usr/src/cmd/fcinfo/fcoeadm.c
+++ b/usr/src/cmd/fcinfo/fcoeadm.c
@@ -621,9 +621,16 @@ fcoe_adm_create_port(int objects, char *argv[],
"port on the specified MAC link\n"));
break;
- case FCOE_STATUS_ERROR_VNIC_UNSUPPORT:
+ case FCOE_STATUS_ERROR_CLASS_UNSUPPORT:
fprintf(stderr,
- gettext("Error: VNIC is not supported\n"));
+ gettext("Error: Link class other than physical "
+ "link is not supported\n"));
+ break;
+
+ case FCOE_STATUS_ERROR_GET_LINKINFO:
+ fprintf(stderr,
+ gettext("Error: Failed to get link infomation "
+ "for %s\n"), macLinkName);
break;
case FCOE_STATUS_ERROR:
@@ -702,6 +709,12 @@ fcoe_adm_delete_port(int objects, char *argv[])
"the FCoE target first\n"));
break;
+ case FCOE_STATUS_ERROR_GET_LINKINFO:
+ fprintf(stderr,
+ gettext("Error: Failed to get link information "
+ "for %s\n"), macLinkName);
+ break;
+
case FCOE_STATUS_ERROR:
default:
fprintf(stderr,