ia64/xen-unstable

changeset 11752:b3cba293e61a

[NET] front: Fix size of grant_rx_ref[]. It should use the RX ring
size, rather than the TX ring size.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
author kfraser@localhost.localdomain
date Thu Oct 05 16:05:12 2006 +0100 (2006-10-05)
parents a95dfbc8dca8
children bf0deb09facd 646a120334ef
files linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Thu Oct 05 14:53:29 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Thu Oct 05 16:05:12 2006 +0100
     1.3 @@ -165,7 +165,7 @@ struct netfront_info {
     1.4  	grant_ref_t gref_tx_head;
     1.5  	grant_ref_t grant_tx_ref[NET_TX_RING_SIZE + 1];
     1.6  	grant_ref_t gref_rx_head;
     1.7 -	grant_ref_t grant_rx_ref[NET_TX_RING_SIZE];
     1.8 +	grant_ref_t grant_rx_ref[NET_RX_RING_SIZE];
     1.9  
    1.10  	struct xenbus_device *xbdev;
    1.11  	int tx_ring_ref;