dcb: clean up FCoE too

This commit is contained in:
Dan Williams 2014-03-19 15:15:26 -05:00
parent 95d199e04b
commit 4515099a3e

View file

@ -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;
}