Lines Matching refs:pGso
785 PCPDMNETWORKGSO pGso)
791 if (pGso)
794 " off1=0x%x off2=0x%x\n", INSTANCE(pThis), pGso->u8Type,
795 pGso->cbHdrsTotal, pGso->cbHdrsSeg, pGso->cbMaxSeg, pGso->offHdr1, pGso->offHdr2));
797 switch (pGso->u8Type)
814 Hdr.Hdr.u16HdrLen = pGso->cbHdrsTotal;
815 Hdr.Hdr.u16GSOSize = pGso->cbMaxSeg;
816 Hdr.Hdr.u16CSumStart = pGso->offHdr2;
917 PCPDMNETWORKGSO pGso)
921 if (pGso)
925 switch (pGso->u8Type)
944 INSTANCE(pThis), pGso->u8Type));
949 Log2(("%s vnetNetworkDown_ReceiveGso: pvBuf=%p cb=%u pGso=%p\n",
950 INSTANCE(pThis), pvBuf, cb, pGso));
969 rc = vnetHandleRxPacket(pThis, pvBuf, cb, pGso);
1077 * @param pGso The GSO context to setup.
1080 DECLINLINE(PPDMNETWORKGSO) vnetSetupGsoCtx(PPDMNETWORKGSO pGso, VNETHDR const *pHdr)
1082 pGso->u8Type = PDMNETWORKGSOTYPE_INVALID;
1092 pGso->u8Type = PDMNETWORKGSOTYPE_IPV4_TCP;
1093 pGso->cbHdrsSeg = pHdr->u16HdrLen;
1096 pGso->u8Type = PDMNETWORKGSOTYPE_IPV6_TCP;
1097 pGso->cbHdrsSeg = pHdr->u16HdrLen;
1100 pGso->u8Type = PDMNETWORKGSOTYPE_IPV4_UDP;
1101 pGso->cbHdrsSeg = pHdr->u16CSumStart;
1107 pGso->offHdr2 = pHdr->u16CSumStart;
1113 pGso->offHdr1 = sizeof(RTNETETHERHDR);
1114 pGso->cbHdrsTotal = pHdr->u16HdrLen;
1115 pGso->cbMaxSeg = pHdr->u16GSOSize;
1116 return pGso;
1208 PDMNETWORKGSO Gso, *pGso;
1217 pGso = vnetSetupGsoCtx(&Gso, &Hdr);
1220 int rc = pThis->pDrv->pfnAllocBuf(pThis->pDrv, uSize, pGso, &pSgBuf);
1234 if (pGso)
1241 //if (pGso->cbHdrs < Hdr.u16CSumStart + Hdr.u16CSumOffset + 2)
1244 INSTANCE(pThis), pGso->cbHdrsTotal));
1245 switch (pGso->u8Type)
1249 pGso->cbHdrsTotal = Hdr.u16CSumStart +
1251 pGso->cbHdrsSeg = pGso->cbHdrsTotal;
1254 pGso->cbHdrsTotal = (uint8_t)(Hdr.u16CSumStart + sizeof(RTNETUDP));
1255 pGso->cbHdrsSeg = Hdr.u16CSumStart;
1259 ((PPDMNETWORKGSO)pSgBuf->pvUser)->cbHdrsTotal = pGso->cbHdrsTotal;
1260 ((PPDMNETWORKGSO)pSgBuf->pvUser)->cbHdrsSeg = pGso->cbHdrsSeg;
1262 INSTANCE(pThis), pGso->cbHdrsTotal));
1265 " off1=0x%x off2=0x%x\n", INSTANCE(pThis), pGso->u8Type,
1266 pGso->cbHdrsTotal, pGso->cbHdrsSeg, pGso->cbMaxSeg, pGso->offHdr1, pGso->offHdr2));