]> www.infradead.org Git - nvme.git/commit
ice: Distinguish driver reset and removal for AQ shutdown
authorPiotr Gardocki <piotrx.gardocki@intel.com>
Fri, 14 Jun 2024 10:38:11 +0000 (12:38 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 28 Jun 2024 18:18:39 +0000 (11:18 -0700)
commitfdd288e9b7647557c51a28e72fd1003e3a9bf906
tree343aeeead3de06e39d7e6453cc34ea8e11246a36
parent7dfefd0b90488da91de125f7383f966e58bcb034
ice: Distinguish driver reset and removal for AQ shutdown

Admin queue command for shutdown AQ contains a flag to indicate driver
unload. However, the flag is always set in the driver, even for resets. It
can cause the firmware to consider driver as unloaded once the PF reset is
triggered on all ports of device, which could lead to unexpected results.

Add an additional function parameter to functions that shutdown AQ,
indicating whether the driver is actually unloading.

Reviewed-by: Ahmed Zaki <ahmed.zaki@intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Piotr Gardocki <piotrx.gardocki@intel.com>
Signed-off-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_common.h
drivers/net/ethernet/intel/ice/ice_controlq.c
drivers/net/ethernet/intel/ice/ice_main.c