]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/sk98lin/skge.c
[INET_SOCK]: Move struct inet_sock & helper functions to net/inet_sock.h
[net-next-2.6.git] / drivers / net / sk98lin / skge.c
index 00c5d7f04c68547acfde46204d5b4041098db6bf..e1a2d52cc1fe11c274342fe0f877c2929fe2dbf3 100644 (file)
 
 #include       "h/skversion.h"
 
+#include       <linux/in.h>
 #include       <linux/module.h>
 #include       <linux/moduleparam.h>
 #include       <linux/init.h>
@@ -818,7 +819,7 @@ uintptr_t VNextDescr;       /* the virtual bus address of the next descriptor */
                /* set the pointers right */
                pDescr->VNextRxd = VNextDescr & 0xffffffffULL;
                pDescr->pNextRxd = pNextDescr;
-               pDescr->TcpSumStarts = 0;
+               if (!IsTx) pDescr->TcpSumStarts = ETH_HLEN << 16 | ETH_HLEN;
 
                /* advance one step */
                pPrevDescr = pDescr;
@@ -2169,7 +2170,7 @@ rx_start:
                } /* frame > SK_COPY_TRESHOLD */
 
 #ifdef USE_SK_RX_CHECKSUM
-               pMsg->csum = pRxd->TcpSums;
+               pMsg->csum = pRxd->TcpSums & 0xffff;
                pMsg->ip_summed = CHECKSUM_HW;
 #else
                pMsg->ip_summed = CHECKSUM_NONE;