]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix switch between FW and SW LLDP
authorDave Ertman <david.m.ertman@intel.com>
Thu, 6 Feb 2020 09:20:00 +0000 (01:20 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 12 Feb 2020 19:48:14 +0000 (11:48 -0800)
commit5c249b81477fe76f3e42a2af9459bc8c6c7006d0
tree70a343cd8484a64bebbd48a7d353f18b9d2f35e2
parent109eb4e60550dce16a1ab4bd48c6ed13b789eb56
ice: Fix switch between FW and SW LLDP

When switching between FW and SW LLDP mode, the
number of configured TLV apps in the driver's
DCB configuration is getting out of synch with
what lldpad thinks is configured.  This is causing
a problem when shutting down lldpad.  The cleanup
is trying to delete TLV apps that are not defined
in the kernel.

Since the driver is keeping an accurate account
of the apps defined, use the drivers number of
apps to determine if there is an app to delete.
If the number of apps is <= 1, then do not
attempt to delete.

Signed-off-by: Dave Ertman <david.m.ertman@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_nl.c