Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131693371
D5099.id13032.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
814 B
Referenced Files
None
Subscribers
None
D5099.id13032.diff
View Options
Index: head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
===================================================================
--- head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
+++ head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
@@ -172,7 +172,7 @@
* Windows releases.
*/
#define HN_CSUM_ASSIST_WIN8 (CSUM_TCP)
-#define HN_CSUM_ASSIST (CSUM_UDP | CSUM_TCP)
+#define HN_CSUM_ASSIST (CSUM_IP | CSUM_UDP | CSUM_TCP)
/* XXX move to netinet/tcp_lro.h */
#define HN_LRO_HIWAT_MAX 65535
@@ -867,6 +867,9 @@
rppi->per_packet_info_offset);
csum_info->xmit.is_ipv4 = 1;
+ if (m_head->m_pkthdr.csum_flags & CSUM_IP)
+ csum_info->xmit.ip_header_csum = 1;
+
if (m_head->m_pkthdr.csum_flags & CSUM_TCP) {
csum_info->xmit.tcp_csum = 1;
csum_info->xmit.tcp_header_offset = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 11, 9:51 AM (17 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23562874
Default Alt Text
D5099.id13032.diff (814 B)
Attached To
Mode
D5099: hyperv/hn: Enable IP header checksum offloading
Attached
Detach File
Event Timeline
Log In to Comment