[ipoib] Force calculation of checksum for dhcp packets.
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 16 Oct 2008 17:03:43 +0000 (17:03 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 16 Oct 2008 17:03:43 +0000 (17:03 +0000)
Signed off by: anatolyg@voltaire.com

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1660 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/ipoib_port.c

index 11ac13d..11471bd 100644 (file)
@@ -3606,11 +3606,8 @@ __send_mgr_filter_dhcp(
                p_desc->p_buf->ip.prot.udp.hdr.length = cl_ntoh16( sizeof(udp_hdr_t) + sizeof(dhcp_pkt_t) );\r
 \r
                /* update crc in ip header */\r
-               if( !p_port->p_adapter->params.send_chksum_offload )\r
-               {\r
-                       p_desc->p_buf->ip.hdr.chksum = 0;\r
-                       p_desc->p_buf->ip.hdr.chksum = ipchksum((unsigned short*) &p_desc->p_buf->ip.hdr, sizeof(ip_hdr_t));\r
-               }\r
+               p_desc->p_buf->ip.hdr.chksum = 0;\r
+               p_desc->p_buf->ip.hdr.chksum = ipchksum((unsigned short*) &p_desc->p_buf->ip.hdr, sizeof(ip_hdr_t));\r
                break;\r
 \r
        /* Server messages. */\r