-----Original Message-----
From: dev <[email protected]> on behalf of Alin Serdean
<[email protected]>
Date: Tuesday, May 24, 2016 at 9:14 AM
To: "[email protected]" <[email protected]>
Subject: [ovs-dev] [PATCH v2 3/3] datapath-windows: Add GRE checksum
>@@ -369,11 +383,25 @@ OvsDecapGre(POVS_SWITCH_CONTEXT switchContext,
> headRoom += 4;
> }
>
>+ /*
>+ * Create a copy of the NBL so that we have all the headers in one
>MDL.
>+ */
>+ *newNbl = OvsPartialCopyNBL(switchContext, curNbl,
>+ tunnelSize, 0,
>+ TRUE /*copy NBL info */);
>+
>+ if (*newNbl == NULL) {
>+ return NDIS_STATUS_RESOURCES;
>+ }
>+
>+ curNbl = *newNbl;
>+ curNb = NET_BUFFER_LIST_FIRST_NB(curNbl);
The reason we were doing the partial copy earlier is to make sure that ETH
+ IP + GRE headers are all in the first MDL. The code access these headers
assuming they are contiguous in memory. Is there a good reason to move
that code down to here?
Looks good otherwise.
Thanks,
-- Nithin
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev