]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix problems with DSCP QoS implementation
authorDave Ertman <david.m.ertman@intel.com>
Tue, 12 Oct 2021 20:31:21 +0000 (13:31 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 7 Dec 2021 21:21:01 +0000 (13:21 -0800)
commit5b54223a630a068d4712f491d91d453b780d2bca
tree4303f8e4cfd5e43839b3a5e4c8763d8c0a50ef6a
parent8a39d86222cadddfa586626ea7e2c6f8ca91b8a8
ice: Fix problems with DSCP QoS implementation

The patch that implemented DSCP QoS implementation removed a
bandwidth check that was used to check for a specific condition
caused by some corner cases.  This check should not of been
removed.

The same patch also added a check for when the DCBx state could
be changed in relation to DSCP, but the check was erroneously
added nested in a check for CEE mode, which made the check useless.

Fix these problems by re-adding the bandwidth check and relocating
the DSCP mode check earlier in the function that changes DCBx state
in the driver.

Fixes: 0f638f2db6fe ("ice: Add DSCP support")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_dcb_nl.c