From patchwork Thu Apr 20 15:00:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 675623 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp364465wrs; Thu, 20 Apr 2023 08:01:35 -0700 (PDT) X-Google-Smtp-Source: AKy350ZNzTKy9vV9uQUVqbXeRmcWuayacx2p7/T7AK0fx8zdhjpVTc5WCK9eOD+GvYDaoffyT891 X-Received: by 2002:a05:7500:1b93:b0:101:9951:97d with SMTP id dq19-20020a0575001b9300b001019951097dmr93071gab.72.1682002895079; Thu, 20 Apr 2023 08:01:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682002895; cv=none; d=google.com; s=arc-20160816; b=lTt3cc/nxBj2ic2dhGfaH4zld4AIc+J9F+CfIG+qwG/MFoNBftuRyoe5FDCNncxOJC xWiSrM621bLpe1xOBpwrGzOy6sQhNSGVJ+pumo/F1LSHQkSGKeosdifa0e+Nonkntk4W 1eLHmx8utKgv2sSBJGJLNiWvh9NnJuadkjGdhEkJ0gehdMoMHFPpkiMZu0itr/91QGm6 wI5pz731fmtP7FNM+m1qCDg2JJkZINXIqpHXejltBe14FPow95EHVsKKWyFaar+bhhxe hX28oHXc4C6uriPNXYSP83l4ZtYEimC/DobOWKns+jMJY+1psQg+JXtfTh5g9Wl1WCrX YQ7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0vImXH3xRyVec7BYB1TMv5cbFwkjyryrhb38Ec21rN4=; b=W49YX7Iow8Hh/zEzGtliTpEzl6PcYYKFtWZKFik1XhXEuNsWem69Ae4WqFPP6vsTS2 EQWICHu+ABq30djXjZAgvaQwDZYzVc6B5bUMdMLquzlVN6Z+Q9s89HvHPBHVtjVIyA0D ArfADZukqSUIUo5xZtFoO/uo3hmZ+2ZI5S2CDeg0MdII4HdjpNLjBW3Ycx1N//VmqYXS ivtwnQU0v/Uf8+SZH9ZH+1Xxgaj7mwtdgs3zb4hhZOKJdnf28Cu0LyUG/8tMTYn4zOI1 WO+gcgL/OFRSkBb11jFxYpJ+L/dxG2WP/mMBT5uqk4vUbiEAxav1V1Gz6W4UcS9Y7fCn /AYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XRVFqBGN; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p2-20020ab06242000000b00772f2268a86si445036uao.45.2023.04.20.08.01.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Apr 2023 08:01:35 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XRVFqBGN; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppVls-0003oe-AE; Thu, 20 Apr 2023 11:00:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppVli-0003ag-27 for qemu-devel@nongnu.org; Thu, 20 Apr 2023 11:00:19 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ppVlg-00046i-3D for qemu-devel@nongnu.org; Thu, 20 Apr 2023 11:00:17 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-2f95231618aso456256f8f.1 for ; Thu, 20 Apr 2023 08:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682002813; x=1684594813; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0vImXH3xRyVec7BYB1TMv5cbFwkjyryrhb38Ec21rN4=; b=XRVFqBGN3LI8XVMOOsFnIJsBvm1j90DdXIA+uyWYufuY4e5oZubQRRJcn6OBYezico VByO1cMPbDQUuOpu2FOHyB7s2nF4CVv5zXTE9hjEs7gal1VrmQ8HzhK0DM3gj4J1ncUv Zh3CfwHm0617JHhb8L9vS18wAAIVO5lq1V0Quh5Csfno7QJZjLr0+CZpmPOOIuPg8HIk PBJVoVxVDSNjfIGz/1Zf6lLaH3d9YcHcd34+aK7f3ZRxh+ak0ok2Yz7sLYBIBbhAGKfB 4x1WNyOZCz0DtQfsDpQTyDScDe+eALFWb+DdOq2cemWyVVExjFTN8Tk3ueQQmD6H4MA1 6P4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682002813; x=1684594813; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0vImXH3xRyVec7BYB1TMv5cbFwkjyryrhb38Ec21rN4=; b=bDqnWvgybETDaWf/bQcR9JzFLHmE5dxFDmeQ7CkBiBgG6LJTsbf7NzWsdYZbixufxz 31vPQeV9eFpfBlIv1bDpDWyS2wN7XliBs6E5hWURrnavsuuaFD2TTgDYJ8qXolMS55Yr R1LyxS2RnOYIYlCpRcUsEyPFRKHQTCXBWlDUBbpscY18voekKyDLPD2DsFyTWGOdYd5U w2pRiQtZzDYkmRe0/WNuelne9voF6uqhoE/CGK+caS9MWnGWw2wrGBM5Zo/dQ2kdV504 izjEr7AsDoSjkiVHItgMppJscvpT5aWvx4EnxaHNDlt8RTtGgbJ5gN5r7NQqa2gbZcyd 6lHQ== X-Gm-Message-State: AAQBX9db4fgf0aMHLVWG1iECMmkSfwxprYavYNXmJBJm0ksL1r6n7bLF UipOgPq9rjfEleg/vDNuIr3f+w== X-Received: by 2002:a5d:6808:0:b0:2f5:d0f:744a with SMTP id w8-20020a5d6808000000b002f50d0f744amr1539559wru.12.1682002813697; Thu, 20 Apr 2023 08:00:13 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id w13-20020adff9cd000000b002cea9d931e6sm2146827wrr.78.2023.04.20.08.00.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Apr 2023 08:00:12 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 280F71FFB8; Thu, 20 Apr 2023 16:00:11 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Michael Roth , Riku Voipio , Christian Schoenebeck , Yanan Wang , Greg Kurz , Richard Henderson , Kyle Evans , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Eduardo Habkost , Stefan Hajnoczi , Eric Blake , Markus Armbruster , Warner Losh , Paolo Bonzini , Marcel Apfelbaum , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH 09/10] hw/9pfs: use qemu_xxhash4 Date: Thu, 20 Apr 2023 16:00:08 +0100 Message-Id: <20230420150009.1675181-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230420150009.1675181-1-alex.bennee@linaro.org> References: <20230420150009.1675181-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org No need to pass zeros as we have helpers that do that for us. Signed-off-by: Alex Bennée Reviewed-by: Christian Schoenebeck Reviewed-by: Philippe Mathieu-Daudé --- hw/9pfs/9p.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c index 9621ec1341..9bf502c45f 100644 --- a/hw/9pfs/9p.c +++ b/hw/9pfs/9p.c @@ -741,12 +741,12 @@ static VariLenAffix affixForIndex(uint64_t index) /* creative abuse of tb_hash_func7, which is based on xxhash */ static uint32_t qpp_hash(QppEntry e) { - return qemu_xxhash7(e.ino_prefix, e.dev, 0, 0, 0); + return qemu_xxhash4(e.ino_prefix, e.dev); } static uint32_t qpf_hash(QpfEntry e) { - return qemu_xxhash7(e.ino, e.dev, 0, 0, 0); + return qemu_xxhash4(e.ino, e.dev); } static bool qpd_cmp_func(const void *obj, const void *userp)