win-pvdrivers

changeset 778:e0cfc7938e06

Fix typo in lookahead determination.
author James Harper <james.harper@bendigoit.com.au>
date Sun Feb 07 14:16:15 2010 +1100 (2010-02-07)
parents c142b27167e6
children fff1d7255040
files xennet/xennet_rx.c
line diff
     1.1 --- a/xennet/xennet_rx.c	Sun Feb 07 12:37:57 2010 +1100
     1.2 +++ b/xennet/xennet_rx.c	Sun Feb 07 14:16:15 2010 +1100
     1.3 @@ -206,7 +206,7 @@ XenNet_MakePacket(struct xennet_info *xi
     1.4    //KdPrint((__DRIVER_NAME "     ip4_header_length = %d\n", pi->ip4_header_length));
     1.5    //KdPrint((__DRIVER_NAME "     tcp_header_length = %d\n", pi->tcp_header_length));
     1.6    /* make sure we satisfy the lookahead requirement */
     1.7 -  XenNet_BuildHeader(pi, header_va, min(MIN_LOOKAHEAD_LENGTH, xi->current_lookahead) + MAX_ETH_HEADER_LENGTH);
     1.8 +  XenNet_BuildHeader(pi, header_va, max(MIN_LOOKAHEAD_LENGTH, xi->current_lookahead) + MAX_ETH_HEADER_LENGTH);
     1.9    header_extra = pi->header_length - (MAX_ETH_HEADER_LENGTH + pi->ip4_header_length + pi->tcp_header_length);
    1.10    ASSERT(pi->header_length <= MAX_ETH_HEADER_LENGTH + MAX_LOOKAHEAD_LENGTH);
    1.11    NdisAllocateBuffer(&status, &out_buffer, xi->rx_buffer_pool, header_va, pi->header_length);