aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/efx.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2008-12-26 16:44:39 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-26 16:44:39 -0500
commit6977dc6309ea8bbcb24c0a1356c33969e4a07410 (patch)
tree6a18651492dee4932c940ddca84ab03ae8094037 /drivers/net/sfc/efx.c
parente727149e26b08550269a7786fda977aed65578f6 (diff)
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>
Diffstat (limited to 'drivers/net/sfc/efx.c')
-rw-r--r--drivers/net/sfc/efx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index 42934ba2030d..46c2a8b0a88d 100644
--- a/drivers/net/sfc/efx.c
+++ b/drivers/net/sfc/efx.c
@@ -1929,7 +1929,10 @@ static int efx_init_struct(struct efx_nic *efx, struct efx_nic_type *type,
1929 efx->interrupt_mode = max(efx->type->max_interrupt_mode, 1929 efx->interrupt_mode = max(efx->type->max_interrupt_mode,
1930 interrupt_mode); 1930 interrupt_mode);
1931 1931
1932 efx->workqueue = create_singlethread_workqueue("sfc_work"); 1932 /* Would be good to use the net_dev name, but we're too early */
1933 snprintf(efx->workqueue_name, sizeof(efx->workqueue_name), "sfc%s",
1934 pci_name(pci_dev));
1935 efx->workqueue = create_singlethread_workqueue(efx->workqueue_name);
1933 if (!efx->workqueue) 1936 if (!efx->workqueue)
1934 return -ENOMEM; 1937 return -ENOMEM;
1935 1938