]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf10a216d31ccdd0caec04cddf499d8dfdfd5d4ab
treea1510ad7e72cd2920e06919ccc648424f8250f5b
parent634859067ecb8432bdddd638a7377d74ce56fd8d
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