From: Wei Liu <wei.liu2@citrix.com>
To: netdev@vger.kernel.org
Cc: jeremy@goop.org, konrad.wilk@oracle.com,
xen-devel@lists.xensource.com, ian.campbell@citrix.com,
Wei Liu <wei.liu2@citrix.com>
Subject: [PATCH] netback: fix multi page ring size calculation.
Date: Thu, 26 Jan 2012 17:20:07 +0000 [thread overview]
Message-ID: <1327598408-16214-1-git-send-email-wei.liu2@citrix.com> (raw)
---
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
next reply other threads:[~2012-01-26 17:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-26 17:20 Wei Liu [this message]
2012-01-26 17:21 ` [PATCH] netback: fix multi page ring size calculation Wei Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1327598408-16214-1-git-send-email-wei.liu2@citrix.com \
--to=wei.liu2@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=jeremy@goop.org \
--cc=konrad.wilk@oracle.com \
--cc=netdev@vger.kernel.org \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).