ia64/xen-unstable

changeset 1027:175dadca8022

bitkeeper revision 1.667 (3ff99f23ZQMhKwTSZB7AdaZx5fkpEg)

network.c:
Fix small off-by-one error in net ring accounting.
author kaf24@scramble.cl.cam.ac.uk
date Mon Jan 05 17:30:11 2004 +0000 (2004-01-05)
parents 50fc09c0f9d7
children 54f65792d612
files xenolinux-2.4.23-sparse/arch/xeno/drivers/network/network.c
line diff
     1.1 --- a/xenolinux-2.4.23-sparse/arch/xeno/drivers/network/network.c	Mon Jan 05 15:20:55 2004 +0000
     1.2 +++ b/xenolinux-2.4.23-sparse/arch/xeno/drivers/network/network.c	Mon Jan 05 17:30:11 2004 +0000
     1.3 @@ -315,7 +315,7 @@ static int network_start_xmit(struct sk_
     1.4  
     1.5      network_tx_buf_gc(dev);
     1.6  
     1.7 -    if ( (i - np->tx_resp_cons) == TX_RING_SIZE )
     1.8 +    if ( (i - np->tx_resp_cons) == (TX_RING_SIZE - 1) )
     1.9      {
    1.10          np->tx_full = 1;
    1.11          netif_stop_queue(dev);