Patchwork [Open-FCoE,11/14] fipvlan: Do not shut down FCoE connections on physical interface

login
register
mail settings
Submitter Hannes Reinecke
Date Nov. 19, 2013, 12:26 p.m.
Message ID <1384863974-27096-12-git-send-email-hare@suse.de>
Download mbox | patch
Permalink /patch/125/
State Accepted
Headers show

Comments

Hannes Reinecke - Nov. 19, 2013, 12:26 p.m.
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>
---
 fipvlan.c | 4 ++++
 1 file changed, 4 insertions(+)

Patch

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);