[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Fix size of grant_rx_ref in netfront


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
  • Date: Wed, 4 Oct 2006 17:21:29 -0500
  • Delivery-date: Wed, 04 Oct 2006 15:22:03 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcboA3CdVvHaHCtvTwuU9PXfmOAQCQ==
  • Thread-topic: [PATCH] Fix size of grant_rx_ref in netfront

Signed-off-by: Jose Renato Santos <jsantos@xxxxxxxxxx>

# HG changeset patch
# User jsantos@xxxxxxxxxx
# Node ID da3eae31687f6836f3597b0c72b644ce2dd6d3a9
# Parent  38f9bd7a4ce6e164bd720292fb0a75a75cad9d19
[NET] front: Fix size of grant_rx_ref[]. It should use the RX ring size
and not TX ring size.

diff -r 38f9bd7a4ce6 -r da3eae31687f
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
--- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c      Tue Oct
3 11:39:22 2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c      Wed Oct
4 12:20:46 2006 -0700
@@ -139,7 +139,7 @@ struct netfront_info {
        grant_ref_t gref_tx_head;
        grant_ref_t grant_tx_ref[NET_TX_RING_SIZE + 1];
        grant_ref_t gref_rx_head;
-       grant_ref_t grant_rx_ref[NET_TX_RING_SIZE];
+       grant_ref_t grant_rx_ref[NET_RX_RING_SIZE];
 
        struct xenbus_device *xbdev;
        int tx_ring_ref;

Attachment: netfront_grant_rx_ref_fix.patch
Description: netfront_grant_rx_ref_fix.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.