]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix firmware LLDP agent related warning
authorArkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Fri, 21 May 2021 16:41:26 +0000 (18:41 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 23 Jul 2021 14:44:48 +0000 (07:44 -0700)
commit43a7d1b6f0213570793e13b6d18703c2e6b185e7
treea556dc50f41c52f391e80aa5ade3f6eb50720703
parent28b3eac990f85d114a71709d575a4fbf63320e16
i40e: Fix firmware LLDP agent related warning

Make warning meaningful for the user.

Previously the trace:
"Starting FW LLDP agent failed: error: I40E_ERR_ADMIN_QUEUE_ERROR, I40E_AQ_RC_EAGAIN"
was produced when user tried to start Firmware LLDP agent,
just after it was stopped with sequence:
ethtool --set-priv-flags <dev> disable-fw-lldp on
ethtool --set-priv-flags <dev> disable-fw-lldp off
(without any delay between the commands)
At that point the firmware is still processing stop command, the behavior
is expected.

Fixes: c89be4523a4f ("i40e: Missing response checks in driver when starting/stopping FW LLDP")
Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Tested-by: Imam Hassan Reza Biswas <imam.hassan.reza.biswas@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c