ice: Correctly handle return values for init DCB
authorDave Ertman <david.m.ertman@intel.com>
Thu, 8 Aug 2019 14:39:25 +0000 (07:39 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 4 Sep 2019 00:02:23 +0000 (17:02 -0700)
commit473ca574884bdb674cf5bb2c5d27c21017f6b55f
treea1510ad7e72cd2920e06919ccc648424f8250f5b
parenta257f188b72bf0f8b5a08efba174373f5708ff0c
ice: Correctly handle return values for init DCB

In the init path for DCB, the call to ice_init_dcb()
can return a non-zero value for either an actual
error, or due to the FW lldp engine being stopped.

We are currently treating all non-zero values only as
an indication that the FW LLDP engine is stopped.

Check for an actual error in the DCB init flow.

Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_dcb_lib.c