File 0014-fipvlan-Do-not-shut-down-FCoE-connections-on-physica.patch of Package fcoe-utils

From 86928f2be78cfb80ff61856e1b7189ed88c836c1 Mon Sep 17 00:00:00 2001
From: Hannes Reinecke <hare@suse.de>
Date: Tue, 19 Nov 2013 20:26:11 +0000
Subject: fipvlan: Do not shut down FCoE connections on physical interface

When FCoE is started on the physical interface fipvlan will
shutdown the interface upon exit.

References: bnc#814151

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Robert Love <robert.w.love@intel.com>
---
 fipvlan.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fipvlan.c b/fipvlan.c
index a865481..3c91930 100644
--- a/fipvlan.c
+++ b/fipvlan.c
@@ -910,6 +910,8 @@ static void cleanup_interfaces(void)
 			if (iff->linkup_sent) {
 				if (config.link_up && iff->resp_recv)
 					continue;
+				if (iff->fcoe_started)
+					continue;
 				if (TAILQ_EMPTY(&iff->vlans)) {
 					FIP_LOG_DBG("shutdown if %d",
 						    iff->ifindex);
@@ -928,6 +930,8 @@ static void cleanup_interfaces(void)
 			if (iff->linkup_sent) {
 				if (config.link_up && iff->resp_recv)
 					continue;
+				if (iff->fcoe_started)
+					continue;
 				if (TAILQ_EMPTY(&iff->vlans)) {
 					FIP_LOG_DBG("shutdown if %d",
 						    iff->ifindex);
-- 
1.8.1.4
openSUSE Build Service is sponsored by