projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7105b05
)
xen nic: use XC_PAGE_SIZE instead of PAGE_SIZE.
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 8 Jun 2009 12:33:27 +0000
(14:33 +0200)
committer
Blue Swirl
<blauwirbel@gmail.com>
Mon, 8 Jun 2009 17:02:04 +0000
(20:02 +0300)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/xen_nic.c
patch
|
blob
|
history
diff --git
a/hw/xen_nic.c
b/hw/xen_nic.c
index 5fcc7019044f23cbde1faf581c69695615466fac..4206132aea537f7bc84d4d065d74ced381aa3632 100644
(file)
--- 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);