From nobody Wed Feb 11 05:11:21 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 152383696379377.66263562455185; Sun, 15 Apr 2018 17:02:43 -0700 (PDT) Received: from localhost ([::1]:52830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7rbR-00036C-RT for importer@patchew.org; Sun, 15 Apr 2018 20:02:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7rKp-0006No-GL for qemu-devel@nongnu.org; Sun, 15 Apr 2018 19:45:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f7rKn-0001kd-T0 for qemu-devel@nongnu.org; Sun, 15 Apr 2018 19:45:27 -0400 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:46047) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f7rKl-0001iT-QW; Sun, 15 Apr 2018 19:45:23 -0400 Received: by mail-qk0-x243.google.com with SMTP id f9so6882425qkm.12; Sun, 15 Apr 2018 16:45:23 -0700 (PDT) Received: from x1.local ([138.117.48.212]) by smtp.gmail.com with ESMTPSA id d1sm1081394qtk.57.2018.04.15.16.45.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Apr 2018 16:45:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Z3UrdZ+xs17b+UgQAmKBEVDBeEfkwVN5yv24oZ632iw=; b=hKhKjynUxa6nyfWd34g+Aqu15bOhPamoxHlwUHUGWjKuqBWX6lCFkRQQPkdnKYaklQ C0FwkXm+LNdP3GQEhtR910qClkFx3K/Uh8l8Y1W7U/NwVh+3OiPdO/7PtDi+D07ysGT7 6UHq+Nt0s+fB0ThbalGK+nEL8NYQSpvJiNcM6MEEp5KhlQu9unubOk+rwPYVPIRkRjpu 4G9NBev9hAsz/KtWuM79/HtJLB8HDUpN5/8AywjmEzLp782ijTdVISnJ492V5iAVYwgs vKJ0u3koDK0AqFaJXoN5LUlxv7+tderQ+iaEjz93gTynOhHwF9Nf5R1NuLarQsFrY+HQ dARQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Z3UrdZ+xs17b+UgQAmKBEVDBeEfkwVN5yv24oZ632iw=; b=cZyFnJ9vOP3w9Dg7ZHdOAtlphRfuRAmDtnA6Ty1GE96NoIq9U1MicCWRpTzcYlY7J9 P4p9+v453n2GT1nHw3r0MMqUPU4OhxvNgkxs7VaYSiCcavbO1RWUsM2RXxRJE2s+HQ26 xm6CVSOsbb0/XqD36QlH1Wj0m1X3onx52a9AlCRej1bnXD0KmoOuy1kZW6susKGUEgUm +kcMC7aons0nr9wINLI44SnoI4kFjX1JSYlJ0yE33DKUykFnMleHf8IGIkPc99uAgUzm AITlGZGYv/TkwmL95rYvJgA4NCfxB+fURukkA334FFbWWm9G30NrIHWreSjjkOTG0ukG ZVUQ== X-Gm-Message-State: ALQs6tCgA4l+uz/4gRcg+0gJ997ma29Ho0vH7RxJn3HfakEUfWY/VpVC siW3Yt3pZRr5m8Oq/pQKmlRqbXFEU1c= X-Google-Smtp-Source: AIpwx48aO/MuR7tm1cLx4FUbm5xfmHGQqj2IQ9lTKZ3rIQAFg1klIFb74SxgPJsPmWGZAqu0ESXz/Q== X-Received: by 10.55.20.103 with SMTP id e100mr576182qkh.6.1523835923138; Sun, 15 Apr 2018 16:45:23 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-trivial@nongnu.org, Thomas Huth Date: Sun, 15 Apr 2018 20:43:03 -0300 Message-Id: <20180415234307.28132-38-f4bug@amsat.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180415234307.28132-1-f4bug@amsat.org> References: <20180415234307.28132-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::243 Subject: [Qemu-devel] [PATCH v3 37/41] hw/virtio: Use the BYTE-based definitions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Michael S. Tsirkin" , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 It eases code review, unit is explicit. Patch generated using: $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ and modified manually. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/virtio/virtio-net.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/hw/virtio/virtio-net.h b/include/hw/virtio/virtio-net.h index 02484dc94c..8765f6546e 100644 --- a/include/hw/virtio/virtio-net.h +++ b/include/hw/virtio/virtio-net.h @@ -14,6 +14,7 @@ #ifndef QEMU_VIRTIO_NET_H #define QEMU_VIRTIO_NET_H =20 +#include "qemu/units.h" #include "standard-headers/linux/virtio_net.h" #include "hw/virtio/virtio.h" =20 @@ -44,7 +45,7 @@ typedef struct virtio_net_conf } virtio_net_conf; =20 /* Maximum packet size we can receive from tap device: header + 64k */ -#define VIRTIO_NET_MAX_BUFSIZE (sizeof(struct virtio_net_hdr) + (64 << 10)) +#define VIRTIO_NET_MAX_BUFSIZE (sizeof(struct virtio_net_hdr) + (64 * K_BY= TE)) =20 typedef struct VirtIONetQueue { VirtQueue *rx_vq; --=20 2.17.0