[ipoib] Fix UDP checksum problem on windows 2008.
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 4 Nov 2008 13:41:55 +0000 (13:41 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 4 Nov 2008 13:41:55 +0000 (13:41 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1726 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/ipoib_port.c

index e6a5391..cd6b7ec 100644 (file)
@@ -3946,8 +3946,9 @@ __build_send_desc(
                {\r
                        p_desc->wr.send_opt |= IB_SEND_OPT_TX_IP_CSUM;\r
                }\r
-               if(pChecksumPktInfo->Transmit.NdisPacketTcpChecksum  ) \r
-               {\r
+               if(pChecksumPktInfo->Transmit.NdisPacketTcpChecksum ||\r
+                  pChecksumPktInfo->Transmit.NdisPacketUdpChecksum ) \r
+               {      \r
                        p_desc->wr.send_opt |= IB_SEND_OPT_TX_TCP_UDP_CSUM;\r
                }\r
        }\r