Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131741984
D2546.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
747 B
Referenced Files
None
Subscribers
None
D2546.diff
View Options
Index: head/sys/dev/sfxge/sfxge.c
===================================================================
--- head/sys/dev/sfxge/sfxge.c
+++ head/sys/dev/sfxge/sfxge.c
@@ -282,10 +282,14 @@
ifp->if_hwassist |= (CSUM_TCP_IPV6 | CSUM_UDP_IPV6);
else
ifp->if_hwassist &= ~(CSUM_TCP_IPV6 | CSUM_UDP_IPV6);
- if (ifp->if_capenable & IFCAP_TSO)
- ifp->if_hwassist |= CSUM_TSO;
- else
- ifp->if_hwassist &= ~CSUM_TSO;
+
+ /*
+ * The kernel takes both IFCAP_TSOx and CSUM_TSO into
+ * account before using TSO. So, we do not touch
+ * checksum flags when IFCAP_TSOx is modified.
+ * Note that CSUM_TSO is (CSUM_IP_TSO|CSUM_IP6_TSO),
+ * but both bits are set in IPv4 and IPv6 mbufs.
+ */
SFXGE_ADAPTER_UNLOCK(sc);
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 11, 7:45 PM (8 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23590221
Default Alt Text
D2546.diff (747 B)
Attached To
Mode
D2546: sfxge: do not change CSUM_TSO when IFCAP_TSOx is changed
Attached
Detach File
Event Timeline
Log In to Comment