]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] sk98lin: rx checksum offset not set
authorStephen Hemminger <shemminger@osdl.org>
Mon, 5 Dec 2005 19:00:40 +0000 (11:00 -0800)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 6 Dec 2005 09:43:40 +0000 (04:43 -0500)
The checksum offsets for receive offload were not being set correctly.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/sk98lin/skge.c

index 00c5d7f04c68547acfde46204d5b4041098db6bf..ae734393475876a6c0bd9ce521fb714967c15f21 100644 (file)
@@ -818,7 +818,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 +2169,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;