Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145048338
D20747.id58964.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
851 B
Referenced Files
None
Subscribers
None
D20747.id58964.diff
View Options
Index: sys/net/iflib.c
===================================================================
--- sys/net/iflib.c
+++ sys/net/iflib.c
@@ -4733,7 +4733,7 @@
err);
goto fail_queues;
}
- } else {
+ } else if (scctx->isc_intr != IFLIB_INTR_MSIX) {
rid = 0;
if (scctx->isc_intr == IFLIB_INTR_MSI) {
MPASS(msix == 1);
@@ -4743,6 +4743,10 @@
device_printf(dev, "iflib_legacy_setup failed %d\n", err);
goto fail_queues;
}
+ } else {
+ device_printf(dev, "Cannot use iflib with only 1 MSI-X interrupt!\n");
+ err = ENODEV;
+ goto fail_intr_free;
}
ether_ifattach(ctx->ifc_ifp, ctx->ifc_mac.octet);
@@ -4783,6 +4787,7 @@
fail_queues:
iflib_tx_structures_free(ctx);
iflib_rx_structures_free(ctx);
+ taskqgroup_detach(qgroup_if_config_tqg, &ctx->ifc_admin_task);
IFDI_DETACH(ctx);
fail_unlock:
CTX_UNLOCK(ctx);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 16, 9:53 AM (13 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28774579
Default Alt Text
D20747.id58964.diff (851 B)
Attached To
Mode
D20747: iflib: Prevent kernel panic caused by loading driver with a specific interrupt configuration
Attached
Detach File
Event Timeline
Log In to Comment