Blame SOURCES/fcoe-utils-1.0.29-pass-flags-to-fcoemon-to-enable-vn2vn-mode.patch

ebec02
From 50e1aaa1b8b6856a890ae3f036ae9439b24c40c3 Mon Sep 17 00:00:00 2001
ebec02
From: Chris Leech <cleech@redhat.com>
ebec02
Date: Fri, 24 Oct 2014 14:36:53 -0700
ebec02
Subject: [PATCH] pass flags to fcoemon to enable vn2vn mode
ebec02
ebec02
---
ebec02
 fcoeadm.c | 8 +++-----
ebec02
 1 file changed, 3 insertions(+), 5 deletions(-)
ebec02
ebec02
diff --git a/fcoeadm.c b/fcoeadm.c
ebec02
index 07ff690..776b4e3 100644
ebec02
--- a/fcoeadm.c
ebec02
+++ b/fcoeadm.c
ebec02
@@ -286,7 +286,7 @@ int main(int argc, char *argv[])
ebec02
 			}
ebec02
 
ebec02
 			ifname = argv[optind];
ebec02
-			rc = fcoeadm_action(cmd, ifname, CLIF_FLAGS_NONE);
ebec02
+			rc = fcoeadm_action(cmd, ifname, flags);
ebec02
 			break;
ebec02
 		case 'r':
ebec02
 			cmd = CLIF_RESET_CMD;
ebec02
@@ -303,8 +303,7 @@ int main(int argc, char *argv[])
ebec02
 			ifname = argv[optind];
ebec02
 			rc = fcoe_validate_fcoe_conn(ifname);
ebec02
 			if (!rc)
ebec02
-				rc = fcoeadm_action(cmd, ifname,
ebec02
-						    CLIF_FLAGS_NONE);
ebec02
+				rc = fcoeadm_action(cmd, ifname, flags);
ebec02
 			break;
ebec02
 
ebec02
 		case 'i':
ebec02
@@ -405,8 +404,7 @@ int main(int argc, char *argv[])
ebec02
 				rc = display_port_stats(ifname, stat_interval);
ebec02
 			break;
ebec02
 		case 'p':
ebec02
-			rc = fcoeadm_action(CLIF_PID_CMD, NULL,
ebec02
-					    CLIF_FLAGS_NONE);
ebec02
+			rc = fcoeadm_action(CLIF_PID_CMD, NULL, flags);
ebec02
 			break;
ebec02
 
ebec02
 		case 'b':
ebec02
-- 
ebec02
1.9.3
ebec02