ice: Account for all states of FW DCBx and LLDP
authorDave Ertman <david.m.ertman@intel.com>
Mon, 29 Jul 2019 09:04:44 +0000 (02:04 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 Aug 2019 16:44:48 +0000 (09:44 -0700)
commit1b0c3247a092db672bf4599f234f0e90d6e30e8b
tree961ec7c31972b949731d84bde10deebe8288a701
parent0c3a6101ff2df98d5d960bda9b159d7c4a952f27
ice: Account for all states of FW DCBx and LLDP

Currently, only the DCBx status is taken into account to
determine if FW LLDP is possible.  But there are NVM version
coming out with DCBx enabled, and FW LLDP disabled.  This
is causing errors where the driver sees that DCBx is not
disabled, and then tries to register for LLDP MIB change
events, and fails.

Change the logic to detect both DCBx and LLDP states in the
FW engine.

Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@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