Changeset 30143 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/linux
- Timestamp:
- Jun 10, 2010 10:00:23 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
r30112 r30143 1103 1103 pShInfo->gso_segs = PDMNetGsoCalcSegmentCount(&pSG->GsoCtx, pSG->cbTotal); 1104 1104 1105 if (fDstWire) 1105 /* 1106 * We need to set checksum fields even if the packet goes to the host 1107 * directly as it may be immediately forwared by IP layer. 1108 */ 1106 1109 { 1107 1110 Assert(skb_headlen(pPkt) >= pSG->GsoCtx.cbHdrs); … … 1121 1124 # endif 1122 1125 } 1123 else 1124 { 1125 pPkt->ip_summed = CHECKSUM_UNNECESSARY; 1126 pPkt->csum = 0; 1126 if (!fDstWire) 1127 1127 PDMNetGsoPrepForDirectUse(&pSG->GsoCtx, pPkt->data, pSG->cbTotal, false /*fPayloadChecksum*/); 1128 }1129 1128 } 1130 1129 #endif /* VBOXNETFLT_WITH_GSO_XMIT_WIRE || VBOXNETFLT_WITH_GSO_XMIT_HOST */
Note:
See TracChangeset
for help on using the changeset viewer.