From patchwork Wed May 24 13:39:51 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: 685352 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp257586wrt; Wed, 24 May 2023 06:41:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7JKxrn5FJEsUoc0QD4/MMGAjUjfrhsaSAj5up3HFZp4LylMTtOF2Hd6KZmDnVvNIm4LxPJ X-Received: by 2002:a05:620a:838d:b0:75b:23a0:e7a2 with SMTP id pb13-20020a05620a838d00b0075b23a0e7a2mr7938494qkn.3.1684935688931; Wed, 24 May 2023 06:41:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684935688; cv=none; d=google.com; s=arc-20160816; b=0gZhMMq0mWFQsml2/QveDuNmMfEw8881XuqZ3/g+BgJ+K3yImvegWQBKMR2HGwBM83 32L8008iSiouSbCmGNt7B1RpqFr0v1a5xdGjDLPNMJeoqvw5PmWJ3fDtMl0aztCZhE1R /dKg795Nqo9SQ8U7lh9Ip0nDsyAl5HksA+sgFrSg/HqhRlaUdzeV8dQpHxsJoBji+qmr 7RyHKsVScB00c5xyPObyMtL2TCgKvldU4xuzZoGRkHKe5YVjnZt2FY8BhxFivluOEHaM zzzo9PjPTbgr8F47E6F/kKNlr/EzUf9QfJpbwuCo1ED+0TyNjLoK+m/vg19OZaQoZ1vJ Ypfg== 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=qglgXO3384mpR0z3xJrO+Vr6cI8uX9097a2UR+OWg40=; b=V3cDFzTGd5Jz/XHPru+01zax97P65k4Iz0dPX+RPk5q5U+61TcaV6Btsl4GWH4AH6c WDB13tRkGTt6B49qLKjGoKQn+ZuDeP0ntTWrQwBJAwFRMn5m5cci9Oy4iAUCpJBvjv1U IxIKO2ZQ/xoD+IkSA/3GcWZmBYVrbFWXK6IxkS9O8Ilp60/HuYDXeSYH3smU41teMHNr JSdKnpiY7249kYAStHJM2xL+XBpYFhpHLnrOvK2GusjObMqK/cIBPr4TxM9nI+61yLBX YCbG93/gUmfjudYT3WBt7rT1yzbP65WFt5jpJG2jZgdI44hoeBDmGaRcBjW3kAVwxyh3 lOgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EFaTwHJq; 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 w10-20020ae9e50a000000b0074cc66fe556si6001637qkf.725.2023.05.24.06.41.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 May 2023 06:41:28 -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=EFaTwHJq; 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 1q1oik-0008NF-CK; Wed, 24 May 2023 09:40:06 -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 1q1oie-0008DB-ER for qemu-devel@nongnu.org; Wed, 24 May 2023 09:40:01 -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 1q1oib-0003m9-Sr for qemu-devel@nongnu.org; Wed, 24 May 2023 09:40:00 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3093a778089so578412f8f.1 for ; Wed, 24 May 2023 06:39:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684935596; x=1687527596; 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=qglgXO3384mpR0z3xJrO+Vr6cI8uX9097a2UR+OWg40=; b=EFaTwHJqn3YDbgs4WaTj7W02Z+GWi0caGdP4kAyhuhIdrc0Q6NbgdI4xvlASC3ah1Q 9kh1Q8BuST9pA2um+QIMSzPDePf5fQe9/q3lSNZVLH3mCEXbW6h5IEeEMzta7erF9h7h QU68nMwkg+Vvex9HOZVz1x+i8Xj6shSzWcJFEktxf56oybSpjpLtDdywlXZ5XE4KO8Bl DaodG/AONh6MhDngY2s8zE910t5bSUK8u8AnC/A8m+Fm1LX9qgzQnvmseuKgKiZFUwSu PFRbjRmNHXxpOAZ6lOF8Wv04jFwYhtKnZ5WpTUgNJqRJo0ulYuOZHPnij2E7bRxGXMCe dUtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684935596; x=1687527596; 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=qglgXO3384mpR0z3xJrO+Vr6cI8uX9097a2UR+OWg40=; b=UFbNMvzJTrKr1gGxALLSbu4Ax4OBfQIjNgoASS0QOwknwU1dQ/XO2ooRBu5bz/OimW DWa21GHsBVh2y0c1+xUTDzfJ6bMoWLWpVn0wHaoijdNwTOPQMgEHeI2zyf9sJ+IkyKkJ ClEG9I61fJ8+Zln/dlO/W9qlZtbizq6OrJGbWriQaIQYq9ZldmE289+uDGiznyUWJZJr mY3y+LaD4PU/h9z/gkc+m+aFvCMjB+lHMjMoNyntAM+Fi+lq6P3+zEi5fzor7/8Bl5Er Mhebs+LQVTsJfCNNqkN9drlkbcBcrshNMFDXWrweTC8EvhoGOnpFMZs95CV6Oz7Ym0Ky ipJw== X-Gm-Message-State: AC+VfDx7wmS8EPGTlTyEDE1ZtyLdKIASks/p7XhUT/FM3Jd/pGg4RlnW BWYFSUxETbLX4s0UyqZ8/NmI9w== X-Received: by 2002:a5d:4ace:0:b0:2f5:3fa1:6226 with SMTP id y14-20020a5d4ace000000b002f53fa16226mr13167144wrs.14.1684935596268; Wed, 24 May 2023 06:39:56 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id c12-20020adfe70c000000b003078cd719ffsm14520773wrm.95.2023.05.24.06.39.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 06:39:55 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 125611FFC3; Wed, 24 May 2023 14:39:54 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: Stefan Hajnoczi , qemu-devel@nongnu.org Cc: Kyle Evans , libvir-list@redhat.com, =?utf-8?q?Phili?= =?utf-8?q?ppe_Mathieu-Daud=C3=A9?= , Greg Kurz , Eric Blake , Markus Armbruster , Warner Losh , Marcel Apfelbaum , Eduardo Habkost , Michael Roth , Richard Henderson , Christian Schoenebeck , Riku Voipio , Paolo Bonzini , Yanan Wang , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH v5 09/10] hw/9pfs: use qemu_xxhash4 Date: Wed, 24 May 2023 14:39:51 +0100 Message-Id: <20230524133952.3971948-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230524133952.3971948-1-alex.bennee@linaro.org> References: <20230524133952.3971948-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. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Christian Schoenebeck Reviewed-by: Stefan Hajnoczi Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée Message-Id: <20230523125000.3674739-10-alex.bennee@linaro.org> --- hw/9pfs/9p.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c index 9621ec1341..991645adca 100644 --- a/hw/9pfs/9p.c +++ b/hw/9pfs/9p.c @@ -738,15 +738,14 @@ static VariLenAffix affixForIndex(uint64_t index) return invertAffix(&prefix); /* convert prefix to suffix */ } -/* 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)