pds_core: Unmask adminq interrupt in work thread
authorBrett Creeley <brett.creeley@amd.com>
Fri, 2 Feb 2024 19:59:09 +0000 (11:59 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 6 Feb 2024 12:26:54 +0000 (13:26 +0100)
commitbca10f2c2518b333275becb7f53d6511f622e084
tree04e109660cef4fae7a7768c7da3e102df2387f3b
parent02daffa903e60a864b43a17f7074bb3f7b7baac7
pds_core: Unmask adminq interrupt in work thread

Unmasking the interrupt during the pdsc_adminq_isr
is a bit early and could cause unnecessary interrupts.
Instead always unmask after processing the adminq
and notifyq in pdsc_work_thread()->pdsc_process_adminq().
Also, since we are always unmasking, there's no need
for the local credits variable in pdsc_process_adminq().

Signed-off-by: Brett Creeley <brett.creeley@amd.com>
Reviewed-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/amd/pds_core/adminq.c