Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177970459
D62040.1795680723.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
898 B
Referenced Files
None
Subscribers
None
D62040.1795680723.diff
View Options
diff --git a/sys/net/iflib.c b/sys/net/iflib.c
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -5908,6 +5908,9 @@
ctx->ifc_sysctl_node = NULL;
}
+ if (intr_allocated && ctx->ifc_softc_ctx.isc_intr != IFLIB_INTR_MSIX)
+ iflib_irq_free(ctx, &ctx->ifc_legacy_irq);
+
if (ctx->ifc_tq != NULL) {
/*
* Drain without holding the context lock so configuration tasks can
@@ -6023,6 +6026,9 @@
iflib_stop(ctx);
CTX_UNLOCK(ctx);
+ if (ctx->ifc_softc_ctx.isc_intr != IFLIB_INTR_MSIX)
+ iflib_irq_free(ctx, &ctx->ifc_legacy_irq);
+
iflib_rem_pfil(ctx);
if (ctx->ifc_led_dev != NULL) {
led_destroy(ctx->ifc_led_dev);
@@ -6084,9 +6090,6 @@
iflib_free_intr_mem(if_ctx_t ctx)
{
- if (ctx->ifc_softc_ctx.isc_intr != IFLIB_INTR_MSIX) {
- iflib_irq_free(ctx, &ctx->ifc_legacy_irq);
- }
if (ctx->ifc_softc_ctx.isc_intr != IFLIB_INTR_LEGACY) {
pci_release_msi(ctx->ifc_dev);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 26, 8:12 AM (20 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42008807
Default Alt Text
D62040.1795680723.diff (898 B)
Attached To
Mode
D62040: iflib: remove the legacy interrupt before freeing the queues
Attached
Detach File
Event Timeline