ice: Fix corner case when switching from IEEE to CEE
authorAvinash JD <avinash.dayanand@intel.com>
Thu, 27 Feb 2020 18:14:57 +0000 (10:14 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 10 Mar 2020 20:10:19 +0000 (13:10 -0700)
commit1f454e06d93b7018f553256212f02424ac1be78e
treeb74c1163165e09fc36a40b309c61a10e5570ef28
parent111820b0515a30c11b37531d0c29bc07f00511f3
ice: Fix corner case when switching from IEEE to CEE

While testing DCB for a corner case in which mode is switched from IEEE to
CEE and pfc_ena bitmask unchanged then DCBX mode doesn't get updated.

This is happening because the function ice_dcb_get_mode() is called
in a "no change detected block" instead of "change detected block".

Signed-off-by: Avinash JD <avinash.dayanand@intel.com>
Signed-off-by: Scott Register <scottx.register@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