xen nic: use XC_PAGE_SIZE instead of PAGE_SIZE.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2009-06-08 14:33:27 +02:00 committed by Blue Swirl
parent 7105b05658
commit 682aea0eaa
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ static void net_tx_packets(struct XenNetDev *netdev)
if (txreq.flags & NETTXF_csum_blank) { if (txreq.flags & NETTXF_csum_blank) {
/* have read-only mapping -> can't fill checksum in-place */ /* have read-only mapping -> can't fill checksum in-place */
if (!tmpbuf) if (!tmpbuf)
tmpbuf = qemu_malloc(PAGE_SIZE); tmpbuf = qemu_malloc(XC_PAGE_SIZE);
memcpy(tmpbuf, page + txreq.offset, txreq.size); memcpy(tmpbuf, page + txreq.offset, txreq.size);
net_checksum_calculate(tmpbuf, txreq.size); net_checksum_calculate(tmpbuf, txreq.size);
qemu_send_packet(netdev->vs, tmpbuf, txreq.size); qemu_send_packet(netdev->vs, tmpbuf, txreq.size);