9f65cc
From 21b746743c146c94235c93611519db6d47c8c0c1 Mon Sep 17 00:00:00 2001
9f65cc
From: Lukas Nykryn <lnykryn@redhat.com>
9f65cc
Date: Thu, 18 Feb 2021 11:01:31 +0100
9f65cc
Subject: [PATCH] fix(fcoe): rd.nofcoe=0 should disable fcoe
9f65cc
9f65cc
8446c8f9 Changed the default behavior, but also flipped meaning of 0/1.
9f65cc
Right now rd.nofcoe=0 enables fcoe, which is the opposite what manpage
9f65cc
says.
9f65cc
9f65cc
(cherry picked from commit 805b46c2a81e04d69fc3af912942568516d05ee7)
9f65cc
9f65cc
Resolves: #1929201
9f65cc
---
9f65cc
 modules.d/95fcoe/lldpad.sh     | 2 +-
9f65cc
 modules.d/95fcoe/parse-fcoe.sh | 2 +-
9f65cc
 2 files changed, 2 insertions(+), 2 deletions(-)
9f65cc
9f65cc
diff --git a/modules.d/95fcoe/lldpad.sh b/modules.d/95fcoe/lldpad.sh
9f65cc
index 7faa2e19..6b1844b0 100755
9f65cc
--- a/modules.d/95fcoe/lldpad.sh
9f65cc
+++ b/modules.d/95fcoe/lldpad.sh
9f65cc
@@ -1,6 +1,6 @@
9f65cc
 #!/bin/bash
9f65cc
 
9f65cc
-if getargbool 0 rd.nofcoe ; then
9f65cc
+if ! getargbool 1 rd.nofcoe ; then
9f65cc
 	info "rd.nofcoe=0: skipping lldpad activation"
9f65cc
 	return 0
9f65cc
 fi
9f65cc
diff --git a/modules.d/95fcoe/parse-fcoe.sh b/modules.d/95fcoe/parse-fcoe.sh
9f65cc
index 86f4331e..5553602f 100755
9f65cc
--- a/modules.d/95fcoe/parse-fcoe.sh
9f65cc
+++ b/modules.d/95fcoe/parse-fcoe.sh
9f65cc
@@ -13,7 +13,7 @@
9f65cc
 # fcoe=eth0:nodcb:vn2vn
9f65cc
 # fcoe=4a:3f:4c:04:f8:d7:nodcb:fabric
9f65cc
 
9f65cc
-if getargbool 0 rd.nofcoe ; then
9f65cc
+if ! getargbool 1 rd.nofcoe ; then
9f65cc
 	info "rd.nofcoe=0: skipping fcoe"
9f65cc
 	return 0
9f65cc
 fi
9f65cc