]> 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)
commitb620c01eec026cd8d39d0a180e3593ae5196c17a
treea1510ad7e72cd2920e06919ccc648424f8250f5b
parent2ee04ad0ff9d58bf152db2d6d1b7a3283ef2fc5e
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