win-pvdrivers

changeset 952:58ad7893b3be

Fix tx_length calculation and header size calculation
author James Harper <james.harper@bendigoit.com.au>
date Thu Nov 10 21:03:53 2011 +1100 (2011-11-10)
parents 013b63248e5d
children cc8651af4e45
files xennet/xennet6_tx.c
line diff
     1.1 --- a/xennet/xennet6_tx.c	Thu Nov 10 19:27:28 2011 +1100
     1.2 +++ b/xennet/xennet6_tx.c	Thu Nov 10 21:03:53 2011 +1100
     1.3 @@ -358,8 +358,8 @@ XenNet_HWSendPacket(struct xennet_info *
     1.4          txN = XenNet_PutCbOnRing(xi, coalesce_buf, min(PAGE_SIZE, remaining), gref);
     1.5          ASSERT(txN);
     1.6          coalesce_buf = NULL;
     1.7 +        tx_length += min(PAGE_SIZE, remaining);
     1.8          remaining -= min(PAGE_SIZE, remaining);
     1.9 -        tx_length += min(PAGE_SIZE, remaining);
    1.10        }
    1.11      }
    1.12      else