Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F101975913
D47296.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
631 B
Referenced Files
None
Subscribers
None
D47296.diff
View Options
Index: sys/net/iflib.c
===================================================================
--- sys/net/iflib.c
+++ sys/net/iflib.c
@@ -3095,10 +3095,16 @@
retval |= IFLIB_RXEOF_MORE;
return (retval);
err:
- STATE_LOCK(ctx);
- ctx->ifc_flags |= IFC_DO_RESET;
- iflib_admin_intr_deferred(ctx);
- STATE_UNLOCK(ctx);
+ /*
+ * Allow drivers to use EBADMSG for transient errors, otherwise consider
+ * other errors as contractual failures and reset the interface.
+ */
+ if (err != EBADMSG) {
+ STATE_LOCK(ctx);
+ ctx->ifc_flags |= IFC_DO_RESET;
+ iflib_admin_intr_deferred(ctx);
+ STATE_UNLOCK(ctx);
+ }
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 1:31 AM (20 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14479761
Default Alt Text
D47296.diff (631 B)
Attached To
Mode
D47296: iflib: Discern when to reset on isc_rxd_pkt_get errors
Attached
Detach File
Event Timeline
Log In to Comment