From 50e1aaa1b8b6856a890ae3f036ae9439b24c40c3 Mon Sep 17 00:00:00 2001 From: Chris Leech Date: Fri, 24 Oct 2014 14:36:53 -0700 Subject: [PATCH] pass flags to fcoemon to enable vn2vn mode --- fcoeadm.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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': -- 1.9.3