[Open-FCoE] [PATCH] fcoeadm: support non-FCoE HBAs for some operations.

Joe Eykholt jeykholt at cisco.com
Sat Jan 17 01:49:09 UTC 2009


fcoeadm: support non-FCoE HBAs for some operations.

For all operations except create/destroy, fcoeadm can handle any
HBA-API-supported HBA that uses scsi_transport_fc.
Deleted the FCoE and network checks for these operations.

Signed-off-by: Joe Eykholt <jeykholt at cisco.com>
---
 usr/tools/fcoeadm/fcoeadm.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)


diff --git a/usr/tools/fcoeadm/fcoeadm.c b/usr/tools/fcoeadm/fcoeadm.c
index 1f7bb1d..3de9c2c 100644
--- a/usr/tools/fcoeadm/fcoeadm.c
+++ b/usr/tools/fcoeadm/fcoeadm.c
@@ -280,14 +280,11 @@ fcoeadm_destroy(char *ifname)
 }
 
 /*
- * Validate an existing FCoE instance for an Ethernet interface
+ * Validate an existing instance for an FC interface
  */
 static int
 fcoeadm_validate_interface(char *ifname, char *fchost, int len)
 {
-	if (fcoeadm_check(ifname))
-		return -EINVAL;
-
 	if (!fcoeadm_find_fchost(ifname, fchost, len)) {
 		fprintf(stderr, "%s: No fc_host found for %s\n",
 			progname, ifname);





More information about the devel mailing list