if (BNXT_PF(bp))
queue_work(bnxt_pf_wq, &bp->sp_task);
else
- bnxt_queue_sp_work(bp);
+ schedule_work(&bp->sp_task);
}
static void bnxt_cancel_sp_work(struct bnxt *bp)
bnxt_hwrm_set_cache_line_size(bp, cache_line_size());
+ if (BNXT_PF(bp)) {
+ if (!bnxt_pf_wq) {
+ bnxt_pf_wq =
+ create_singlethread_workqueue("bnxt_pf_wq");
+ if (!bnxt_pf_wq) {
+ dev_err(&pdev->dev, "Unable to create workqueue.\n");
+ goto init_err_pci_clean;
+ }
+ }
+ }
+
rc = register_netdev(dev);
if (rc)
goto init_err_clr_int;