Date: Tue, 29 Aug 2006 18:42:35 GMT From: tkuik <tkuik@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 105278 for review Message-ID: <200608291842.k7TIgZ7Z033644@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105278 Change 105278 by tkuik@tkuik_freebsd on 2006/08/29 18:41:50 Fix TCP checksum issue with DOM0 Affected files ... .. //depot/projects/xen3/src/sys/dev/xen/netfront/netfront.c#8 edit Differences ... ==== //depot/projects/xen3/src/sys/dev/xen/netfront/netfront.c#8 (text+ko) ==== @@ -758,10 +758,13 @@ m->m_pkthdr.len = m->m_len = rx->status; m->m_pkthdr.rcvif = ifp; -#ifdef notyet - if ( rx->flags & NETRXF_csum_valid ) - skb->ip_summed = CHECKSUM_UNNECESSARY; -#endif + if ( rx->flags & NETRXF_data_validated ) { + /* Tell the stack the checksums are okay */ + m->m_pkthdr.csum_flags |= + (CSUM_IP_CHECKED | CSUM_IP_VALID | CSUM_DATA_VALID | CSUM_PSEUDO_HDR); + m->m_pkthdr.csum_data = 0xffff; + } + np->stats.rx_packets++; np->stats.rx_bytes += rx->status;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608291842.k7TIgZ7Z033644>