Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168034460
D13366.id36268.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
768 B
Referenced Files
None
Subscribers
None
D13366.id36268.diff
View Options
Index: head/sys/dev/vnic/nicvf_queues.c
===================================================================
--- head/sys/dev/vnic/nicvf_queues.c
+++ head/sys/dev/vnic/nicvf_queues.c
@@ -1802,6 +1802,8 @@
if (mbuf == NULL)
return (ENOBUFS);
}
+ if (mbuf->m_pkthdr.csum_flags & CSUM_IP)
+ hdr->csum_l3 = 1; /* Enable IP csum calculation */
ip = (struct ip *)(mbuf->m_data + ehdrlen);
iphlen = ip->ip_hl << 2;
@@ -1809,13 +1811,10 @@
proto = ip->ip_p;
break;
#endif
- default:
- hdr->csum_l3 = 0;
}
#if defined(INET6) || defined(INET)
if (poff > 0 && mbuf->m_pkthdr.csum_flags != 0) {
- hdr->csum_l3 = 1; /* Enable IP csum calculation */
switch (proto) {
case IPPROTO_TCP:
if ((mbuf->m_pkthdr.csum_flags & CSUM_TCP) == 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 27, 1:18 AM (22 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37336863
Default Alt Text
D13366.id36268.diff (768 B)
Attached To
Mode
D13366: vnic: apply hardware L3 checksum only for IPv4
Attached
Detach File
Event Timeline
Log In to Comment