From 4515099a3ea35026cd552573049172db903212fe Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 19 Mar 2014 15:15:26 -0500 Subject: [PATCH] dcb: clean up FCoE too --- src/nm-dcb.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/nm-dcb.c b/src/nm-dcb.c index 37b0379982..d29332f781 100644 --- a/src/nm-dcb.c +++ b/src/nm-dcb.c @@ -343,6 +343,14 @@ nm_dcb_setup (const char *iface, NMSettingDcb *s_dcb, GError **error) gboolean nm_dcb_cleanup (const char *iface, GError **error) { - return _dcb_cleanup (iface, run_helper, GUINT_TO_POINTER (DCBTOOL), error); + gboolean success; + + success = _dcb_cleanup (iface, run_helper, GUINT_TO_POINTER (DCBTOOL), error); + if (success) { + /* Only report FCoE errors if DCB cleanup was successful */ + success = _fcoe_cleanup (iface, run_helper, GUINT_TO_POINTER (FCOEADM), success ? error : NULL); + } + + return success; }