sfc: Generate unique names for per-NIC workqueues
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
e727149e26
commit
6977dc6309
@@ -1929,7 +1929,10 @@ static int efx_init_struct(struct efx_nic *efx, struct efx_nic_type *type,
|
||||
efx->interrupt_mode = max(efx->type->max_interrupt_mode,
|
||||
interrupt_mode);
|
||||
|
||||
efx->workqueue = create_singlethread_workqueue("sfc_work");
|
||||
/* Would be good to use the net_dev name, but we're too early */
|
||||
snprintf(efx->workqueue_name, sizeof(efx->workqueue_name), "sfc%s",
|
||||
pci_name(pci_dev));
|
||||
efx->workqueue = create_singlethread_workqueue(efx->workqueue_name);
|
||||
if (!efx->workqueue)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Reference in New Issue
Block a user