]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Validate config for SW DCB map
authorAvinash Dayanand <avinash.dayanand@intel.com>
Thu, 13 Feb 2020 21:30:59 +0000 (13:30 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 19 Feb 2020 20:12:27 +0000 (12:12 -0800)
commit13f11b003021639d284f14c2131f4411db5786f8
tree3da50fa39eb03e5185fc0e877679e361688e3853
parent190b57c450b8484551b35cae1f52c38577725428
ice: Validate config for SW DCB map

Validate the inputs for SW DCB config received either via lldptool or pcap
file. And don't apply DCB for bad bandwidth inputs. Without this patch, any
config having bad inputs will cause the loss of link making PF unusable
even after driver reload. Recoverable only via system reboot.

Signed-off-by: Avinash Dayanand <avinash.dayanand@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
drivers/net/ethernet/intel/ice/ice_dcb_lib.h
drivers/net/ethernet/intel/ice/ice_dcb_nl.c