ice: Copy dcbx configuration only if mode is correct
authorMichal Swiatkowski <michal.swiatkowski@intel.com>
Mon, 29 Jul 2019 09:04:48 +0000 (02:04 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 Aug 2019 16:59:51 +0000 (09:59 -0700)
commit42a179c80ddd19955ec90f01858b2993145dc874
tree9ae6da48fd2aa645e92657acb9337e85327c962d
parent64bcaec64284e08430db5f00944443ec41a86df2
ice: Copy dcbx configuration only if mode is correct

In rebuild DCB desired_dcbx_cfg was copy to local_dcbx_cfg, but
if DCBX mode is IEEE desired_dcbx_cfg is not initialized by DCBX
config from FW. Change logic to copy config value only if mode is
set to CEE.

If driver copy desired_dcbx_cfg to local_dcbx_cfg in IEEE mode there
is problem with globr. System is frozen after two or more globr.

Signed-off-by: Michal Swiatkowski <michal.swiatkowski@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