i40e: Missing response checks in driver when starting/stopping FW LLDP
authorAleksandr Loktionov <aleksandr.loktionov@intel.com>
Wed, 24 Apr 2019 12:20:55 +0000 (05:20 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 14 Jun 2019 20:03:39 +0000 (13:03 -0700)
commitc1e212bfc32ea8368ef3fa5232203029be507908
treec2d3accc5b50904d6a669814b9ed3f6143c51f98
parent781ee4ae16e5c7482ed2e0027aaaccace4c7a885
i40e: Missing response checks in driver when starting/stopping FW LLDP

Driver updated pf->flags before calling i40e_aq_start_lldp().
This patch moved down updating pf->flags down so flags will be
updated only in case of successful i40e_aq_start_lldp() call.
Also was introduced is_reset_needed local flag to avoid unnecessary h/w
reset in case 40e_aq_start_lldp() didn't change lldp state.

Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c