Patchwork [Open-FCoE] fcoeadm: pass flags to fcoemon to enable vn2vn mode

login
register
mail settings
Submitter Chris Leech
Date Oct. 24, 2014, 10:58 p.m.
Message ID <1414191492-5976-1-git-send-email-cleech@redhat.com>
Download mbox | patch
Permalink /patch/171/
State Accepted
Headers show

Comments

Chris Leech - Oct. 24, 2014, 10:58 p.m.
The vn2vn mode flag wasn't actually hooked up to the clif command, so
fcoemon always received a fabric mode create request.

Signed-off-by: Chris Leech <cleech@redhat.com>
---
 fcoeadm.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

Patch

diff --git a/fcoeadm.c b/fcoeadm.c
index 07ff690..776b4e3 100644
--- a/fcoeadm.c
+++ b/fcoeadm.c
@@ -286,7 +286,7 @@  int main(int argc, char *argv[])
 			}
 
 			ifname = argv[optind];
-			rc = fcoeadm_action(cmd, ifname, CLIF_FLAGS_NONE);
+			rc = fcoeadm_action(cmd, ifname, flags);
 			break;
 		case 'r':
 			cmd = CLIF_RESET_CMD;
@@ -303,8 +303,7 @@  int main(int argc, char *argv[])
 			ifname = argv[optind];
 			rc = fcoe_validate_fcoe_conn(ifname);
 			if (!rc)
-				rc = fcoeadm_action(cmd, ifname,
-						    CLIF_FLAGS_NONE);
+				rc = fcoeadm_action(cmd, ifname, flags);
 			break;
 
 		case 'i':
@@ -405,8 +404,7 @@  int main(int argc, char *argv[])
 				rc = display_port_stats(ifname, stat_interval);
 			break;
 		case 'p':
-			rc = fcoeadm_action(CLIF_PID_CMD, NULL,
-					    CLIF_FLAGS_NONE);
+			rc = fcoeadm_action(CLIF_PID_CMD, NULL, flags);
 			break;
 
 		case 'b':