* [PATCH] netback: fix multi page ring size calculation.
@ 2012-01-26 17:20 Wei Liu
2012-01-26 17:21 ` Wei Liu
0 siblings, 1 reply; 2+ messages in thread
From: Wei Liu @ 2012-01-26 17:20 UTC (permalink / raw)
To: netdev; +Cc: jeremy, konrad.wilk, xen-devel, ian.campbell, Wei Liu
---
drivers/net/xen-netback/common.h | 4 ++--
1 files changed, 2 insertions(+), 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_pages)))
#define NETBK_MAX_RING_PAGE_ORDER 2
#define NETBK_MAX_RING_PAGES (1U << NETBK_MAX_RING_PAGE_ORDER)
--
1.7.8.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] netback: fix multi page ring size calculation.
2012-01-26 17:20 [PATCH] netback: fix multi page ring size calculation Wei Liu
@ 2012-01-26 17:21 ` Wei Liu
0 siblings, 0 replies; 2+ messages in thread
From: Wei Liu @ 2012-01-26 17:21 UTC (permalink / raw)
To: netdev@vger.kernel.org
Cc: wei.liu2, jeremy@goop.org, konrad.wilk@oracle.com,
xen-devel@lists.xensource.com, Ian Campbell
Sorry for the noise, I accidently sent the wrong patch.
Wei.
On Thu, 2012-01-26 at 17:20 +0000, Wei Liu wrote:
> ---
> drivers/net/xen-netback/common.h | 4 ++--
> 1 files changed, 2 insertions(+), 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_pages)))
>
> #define NETBK_MAX_RING_PAGE_ORDER 2
> #define NETBK_MAX_RING_PAGES (1U << NETBK_MAX_RING_PAGE_ORDER)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-26 17:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-26 17:20 [PATCH] netback: fix multi page ring size calculation Wei Liu
2012-01-26 17:21 ` Wei Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).