Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161273661
D17881.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D17881.diff
View Options
Index: head/sys/net/iflib.c
===================================================================
--- head/sys/net/iflib.c
+++ head/sys/net/iflib.c
@@ -4256,18 +4256,13 @@
setmask |= (mask & IFCAP_WOL);
/*
- * If we're disabling any RX csum, disable all the ones
- * the driver supports. This assumes all supported are
- * enabled.
- *
- * Otherwise, if they've changed, enable all of them.
+ * If any RX csum has changed, change all the ones that
+ * are supported by the driver.
*/
- if ((setmask & (IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6)) <
- (oldmask & (IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6)))
- setmask &= ~(IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6);
- else if ((setmask & (IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6)) !=
- (oldmask & (IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6)))
- setmask |= (mask & (IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6));
+ if (setmask & (IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6)) {
+ setmask |= ctx->ifc_softc_ctx.isc_capabilities &
+ (IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6);
+ }
/*
* want to ensure that traffic has stopped before we change any of the flags
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 3, 8:30 AM (15 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34617525
Default Alt Text
D17881.diff (1 KB)
Attached To
Mode
D17881: Fix rxcsum issue introduced in r338838
Attached
Detach File
Event Timeline
Log In to Comment