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)
commita29a912d448dbc9912705377195bf6418da5897f
tree3da50fa39eb03e5185fc0e877679e361688e3853
parent7d51a01599d5285fc94fa4fcea10afabfa9ca5a4
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