Displaying 1 result from an estimated 1 matches for "netbk_tx_ring_size".
Did you mean:
netbk_rx_ring_size
2012 Jan 26
1
[PATCH] netback: fix multi page ring size calculation.
...(+), 2 deletions(-)
diff --git a/drivers/net/xen-netback/common.h b/drivers/net/xen-netback/common.h
index 477e5ab..f3d95b3 100644
--- a/drivers/net/xen-netback/common.h
+++ b/drivers/net/xen-netback/common.h
@@ -60,9 +60,9 @@ struct xenvif_rx_meta {
#define MAX_BUFFER_OFFSET PAGE_SIZE
#define NETBK_TX_RING_SIZE(_nr_pages) \
- (__CONST_RING_SIZE(xen_netif_tx, PAGE_SIZE) * (_nr_pages))
+ (__CONST_RING_SIZE(xen_netif_tx, PAGE_SIZE * (_nr_pages)))
#define NETBK_RX_RING_SIZE(_nr_pages) \
- (__CONST_RING_SIZE(xen_netif_rx, PAGE_SIZE) * (_nr_pages))
+ (__CONST_RING_SIZE(xen_netif_rx, PAGE_SIZE * (_nr_pa...