提交 682aea0e 编写于 作者: G Gerd Hoffmann 提交者: Blue Swirl

xen nic: use XC_PAGE_SIZE instead of PAGE_SIZE.

Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 7105b056
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册