|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Fix batched request list overflow on packet receive path
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 2d31ebf402e1f4c2ae2b335b9474e1b08f64f15c
# Parent 709bce2f08d6024c2efb2938e564915da1ca51f2
Fix batched request list overflow on packet receive path
in the netback driver.
Signed-off-by: Robert Read <robert@xxxxxxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
diff -r 709bce2f08d6 -r 2d31ebf402e1
linux-2.6-xen-sparse/drivers/xen/netback/netback.c
--- a/linux-2.6-xen-sparse/drivers/xen/netback/netback.c Wed Jan 25
13:28:07 2006
+++ b/linux-2.6-xen-sparse/drivers/xen/netback/netback.c Wed Jan 25
13:36:35 2006
@@ -39,10 +39,9 @@
#define MAX_PENDING_REQS 256
static struct sk_buff_head rx_queue;
-static multicall_entry_t rx_mcl[NET_RX_RING_SIZE*2+1];
+static multicall_entry_t rx_mcl[NET_RX_RING_SIZE+1];
static mmu_update_t rx_mmu[NET_RX_RING_SIZE];
-
-static gnttab_transfer_t grant_rx_op[MAX_PENDING_REQS];
+static gnttab_transfer_t grant_rx_op[NET_RX_RING_SIZE];
static unsigned char rx_notify[NR_IRQS];
static unsigned long mmap_vstart;
@@ -245,7 +244,7 @@
__skb_queue_tail(&rxq, skb);
/* Filled the batch queue? */
- if ((mcl - rx_mcl) == ARRAY_SIZE(rx_mcl))
+ if ((gop - grant_rx_op) == ARRAY_SIZE(grant_rx_op))
break;
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Fix batched request list overflow on packet receive path,
Xen patchbot -unstable <=
|
|
|
|
|