Commit 682aea0eaa11925518ea1a826a32a7359304c56f

Authored by Gerd Hoffmann
Committed by Blue Swirl
1 parent 7105b056

xen nic: use XC_PAGE_SIZE instead of PAGE_SIZE.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Showing 1 changed file with 1 additions and 1 deletions
hw/xen_nic.c
@@ -176,7 +176,7 @@ static void net_tx_packets(struct XenNetDev *netdev) @@ -176,7 +176,7 @@ static void net_tx_packets(struct XenNetDev *netdev)
176 if (txreq.flags & NETTXF_csum_blank) { 176 if (txreq.flags & NETTXF_csum_blank) {
177 /* have read-only mapping -> can't fill checksum in-place */ 177 /* have read-only mapping -> can't fill checksum in-place */
178 if (!tmpbuf) 178 if (!tmpbuf)
179 - tmpbuf = qemu_malloc(PAGE_SIZE); 179 + tmpbuf = qemu_malloc(XC_PAGE_SIZE);
180 memcpy(tmpbuf, page + txreq.offset, txreq.size); 180 memcpy(tmpbuf, page + txreq.offset, txreq.size);
181 net_checksum_calculate(tmpbuf, txreq.size); 181 net_checksum_calculate(tmpbuf, txreq.size);
182 qemu_send_packet(netdev->vs, tmpbuf, txreq.size); 182 qemu_send_packet(netdev->vs, tmpbuf, txreq.size);