Don't clear other flags (e.g. CSUM_TCP) when setting CSUM_TSO. This was

causing TSO to break for the Xen netfront driver.

Reviewed by:	gibbs, rwatson
MFC after:	7 days
This commit is contained in:
ken 2010-04-19 15:15:36 +00:00
parent 063c00f467
commit fc7b7bb0cb

View File

@ -1048,7 +1048,7 @@ send:
* XXX: Fixme: This is currently not the case for IPv6.
*/
if (tso) {
m->m_pkthdr.csum_flags = CSUM_TSO;
m->m_pkthdr.csum_flags |= CSUM_TSO;
m->m_pkthdr.tso_segsz = tp->t_maxopd - optlen;
}