[Open-FCoE] [PATCH 11/13] fcoe-utils: Don't depend on "eth" as part of the interface name

Robert Love robert.w.love at intel.com
Thu Jul 2 16:28:47 UTC 2009

Currently fcoemon will not parse a config file for an interface
if it does not start with "cfg-eth". Depending on "cfg-" makes
sense becuase these are the fcoemon config files, but we don't
want to restrict the names of the interfaces that fcoemon will

This patch makes it so that fcoemon will manage interfaces with
any name as long as their config file starts with "cfg-".

Signed-off-by: Robert Love <robert.w.love at intel.com>

 fcoemon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fcoemon.c b/fcoemon.c
index b1872ae..45d8e70 100644
--- a/fcoemon.c
+++ b/fcoemon.c
@@ -306,7 +306,7 @@ static int fcm_read_config_files(void)
 		    (dp->d_name[1] == '\0' ||
 		     (dp->d_name[1] == '.' && dp->d_name[2] == '\0')))
-		rc = strncmp(dp->d_name, "cfg-eth", strlen("cfg-eth"));
+		rc = strncmp(dp->d_name, "cfg-", strlen("cfg-"));
 		if (rc)
 		next = (struct fcoe_port_config *)

More information about the devel mailing list