Skip interface not specified on the command line to block inadvertent
fcoe start on them.

This means now fipvlan will do VLAN discovery only on the specified
interfaces in non-auto mode and therefore in turn will start fcoe
only on them with -s option.

Signed-off-by: Vasu Dev <[email protected]>
---

 fipvlan.c |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/fipvlan.c b/fipvlan.c
index 9e494ee..288b011 100644
--- a/fipvlan.c
+++ b/fipvlan.c
@@ -841,9 +841,21 @@ static int send_vlan_requests(void)
 {
        struct iff *iff;
        int skipped = 0;
+       int i;
 
-       TAILQ_FOREACH(iff, &interfaces, list_node) {
-               skipped += probe_fip_interface(iff);
+       if (config.automode) {
+               TAILQ_FOREACH(iff, &interfaces, list_node) {
+                       skipped += probe_fip_interface(iff);
+               }
+       } else {
+               for (i = 0; i < config.namec; i++) {
+                       iff = lookup_iff(0, config.namev[i]);
+                       if (!iff) {
+                               skipped++;
+                               continue;
+                       }
+                       skipped += probe_fip_interface(iff);
+               }
        }
        return skipped;
 }

_______________________________________________
fcoe-devel mailing list
[email protected]
http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel

Reply via email to