aboutsummaryrefslogtreecommitdiffstats
path: root/hw/xen_nic.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-06-08 14:33:27 +0200
committerBlue Swirl <blauwirbel@gmail.com>2009-06-08 20:02:04 +0300
commit682aea0eaa11925518ea1a826a32a7359304c56f (patch)
tree20e86765e084d50e8017a031fa688763db43bb79 /hw/xen_nic.c
parent7105b056583186a8e18d0da46e4e8db46592f0ab (diff)
xen nic: use XC_PAGE_SIZE instead of PAGE_SIZE.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/xen_nic.c')
-rw-r--r--hw/xen_nic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xen_nic.c b/hw/xen_nic.c
index 5fcc70190..4206132ae 100644
--- a/hw/xen_nic.c
+++ b/hw/xen_nic.c
@@ -176,7 +176,7 @@ static void net_tx_packets(struct XenNetDev *netdev)
if (txreq.flags & NETTXF_csum_blank) {
/* have read-only mapping -> can't fill checksum in-place */
if (!tmpbuf)
- tmpbuf = qemu_malloc(PAGE_SIZE);
+ tmpbuf = qemu_malloc(XC_PAGE_SIZE);
memcpy(tmpbuf, page + txreq.offset, txreq.size);
net_checksum_calculate(tmpbuf, txreq.size);
qemu_send_packet(netdev->vs, tmpbuf, txreq.size);