Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip6_output.c
Show First 20 Lines • Show All 1,110 Lines • ▼ Show 20 Lines | passout: | ||||
* 3: if we always need to attach fragment header (alwaysfrag == 1) | * 3: if we always need to attach fragment header (alwaysfrag == 1) | ||||
* always fragment | * always fragment | ||||
* | * | ||||
* 4: if dontfrag == 1 && alwaysfrag == 1 | * 4: if dontfrag == 1 && alwaysfrag == 1 | ||||
* error, as we cannot handle this conflicting request. | * error, as we cannot handle this conflicting request. | ||||
*/ | */ | ||||
sw_csum = m->m_pkthdr.csum_flags; | sw_csum = m->m_pkthdr.csum_flags; | ||||
if (!hdrsplit) { | if (!hdrsplit) { | ||||
tso = ((sw_csum & ifp->if_hwassist & CSUM_TSO) != 0) ? 1 : 0; | tso = ((sw_csum & ifp->if_hwassist & | ||||
(CSUM_TSO | CSUM_INNER_TSO)) != 0) ? 1 : 0; | |||||
sw_csum &= ~ifp->if_hwassist; | sw_csum &= ~ifp->if_hwassist; | ||||
} else | } else | ||||
tso = 0; | tso = 0; | ||||
/* | /* | ||||
* If we added extension headers, we will not do TSO and calculate the | * If we added extension headers, we will not do TSO and calculate the | ||||
* checksums ourselves for now. | * checksums ourselves for now. | ||||
* XXX-BZ Need a framework to know when the NIC can handle it, even | * XXX-BZ Need a framework to know when the NIC can handle it, even | ||||
* with ext. hdrs. | * with ext. hdrs. | ||||
▲ Show 20 Lines • Show All 2,208 Lines • Show Last 20 Lines |