VirtualBox

Ignore:
Timestamp:
Jun 10, 2010 10:00:23 AM (15 years ago)
Author:
vboxsync
Message:

#5020: Prevent flooding host's kernel log with warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r30112 r30143  
    11031103        pShInfo->gso_segs = PDMNetGsoCalcSegmentCount(&pSG->GsoCtx, pSG->cbTotal);
    11041104
    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         */
    11061109        {
    11071110            Assert(skb_headlen(pPkt) >= pSG->GsoCtx.cbHdrs);
     
    11211124# endif
    11221125        }
    1123         else
    1124         {
    1125             pPkt->ip_summed = CHECKSUM_UNNECESSARY;
    1126             pPkt->csum      = 0;
     1126        if (!fDstWire)
    11271127            PDMNetGsoPrepForDirectUse(&pSG->GsoCtx, pPkt->data, pSG->cbTotal, false /*fPayloadChecksum*/);
    1128         }
    11291128    }
    11301129#endif /* VBOXNETFLT_WITH_GSO_XMIT_WIRE || VBOXNETFLT_WITH_GSO_XMIT_HOST */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette