From nobody Wed Nov 27 21:42:04 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1697378899; cv=none; d=zohomail.com; s=zohoarc; b=j9aJy5ownwjdIpuRLXuyGE5jdLDkK1Bo0cEHN9a6EbOgtJREyKHLjot47A5SE8h5PBzp28ltoI838PJA8rdZJz/qx31DtMz42y/qoSKkYR+uIyhXdeBBSNjC+cfkDFXhoMlIRFVRJQAG6TfTi4UlYKEh0M8vSgV90Ye0gmCkHU4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697378899; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:Message-Id:Reply-To:To; bh=TpViEceVleCYIawlYscfsoVZkbkpKrR8cvlBByVpV28=; b=kLQqRPYDUJdFMN03Kh2xPPm/Zpp824/GSnfeWpse69T+qLaIooOmCCrg2KvxDlXtLKPuz3yaAZ3SHgajs15KA+ICWhDzs0lLPqyKFKFuuSWXzaNaSdz45J+ivQrAlSQPepz07mNzM3nHGcvEZiQ18ZWy71I+8KG1T3opMQuzKLU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1697378899602298.2201315512965; Sun, 15 Oct 2023 07:08:19 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qs1it-00026P-4x; Sun, 15 Oct 2023 10:04:03 -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 1qs1ir-00025J-KF for qemu-devel@nongnu.org; Sun, 15 Oct 2023 10:04:01 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qs1iq-0007nI-4X for qemu-devel@nongnu.org; Sun, 15 Oct 2023 10:04:01 -0400 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1c9daca2b85so26369835ad.1 for ; Sun, 15 Oct 2023 07:03:58 -0700 (PDT) Received: from localhost ([2400:4050:a840:1e00:78d2:b862:10a7:d486]) by smtp.gmail.com with UTF8SMTPSA id d8-20020a170903230800b001b86dd825e7sm6851298plh.108.2023.10.15.07.03.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 15 Oct 2023 07:03:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1697378637; x=1697983437; darn=nongnu.org; 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=TpViEceVleCYIawlYscfsoVZkbkpKrR8cvlBByVpV28=; b=bJSWv2ZhmJPOcG+JZQS54CMSXYfeTi1Xl8x5Dk7S5XFS4XWZbeYj7BDFjRRepppgRf E5o7yV99oLBz7Ux716dONDpqiGpYmDXkf7T429YoaZdvYoMXvVptew0zu115Kckp04vY nfFqi+jzxDUX2FwXJTQOJEeiIOnvJPL/XBQh9WdMzrexwfp4mppWZyJ+of19M+GFAUjy fxnZsN7jjZccmr86QDOUWtWzH8Mi8fDV9/q8O744BLKEI4igIvZJFVu/EB4qFh+s0qzu QgXxtlTEEScm7N9EcztkwAN50UEXef6UDQ3ilARJZeniAKhXCStjqwxMWEdRlDHuQ6j7 qVLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697378637; x=1697983437; 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=TpViEceVleCYIawlYscfsoVZkbkpKrR8cvlBByVpV28=; b=eamDt051N/B/xqI8aPxxcTtHBQk1tICMJFPfhIYgb/DyZKhFTKcRP/lwt7AGNlzfxr EdPmhlB/TnsGwL/lRWCB3Z/zDeEpeDhIgwi+mrb77vBm9zNgJ1WFSL+PJO4JfIeD98qi Y4IhnOOyUB4m5Ztedn9qF71qP7ksVaPjOMbtEYDN5IpubUXuWVr7HdDZMGLc1sX/Lp6B q4K51gZbeCsilv14i/wRUAZ0KDR/RD53nkJivemPw//mOkJLXPjCg7hWyvEd2/C7//2I EG5PkpS5O9d3zVib9NBI7CPLVtW6aDQTMk6q0wxxgWAUKXwNCEJJjak13izMV6diI9+X 6dsQ== X-Gm-Message-State: AOJu0Yw36NkBGDfgAo5bkb9S1hUkllYWHvnMIfy/BK2tVBjVpQAOF0ui iou1lW0zF/w4XQ08gaHEKq8fkkBYYUSiSN0j+VQdwA== X-Google-Smtp-Source: AGHT+IF2e4lJZOljLG6KMPrTxVfERZlQByqkZd3nqoWTbLZvE5uzAcaz2Cvbs5f2gbT+1nn5RiM9eA== X-Received: by 2002:a17:902:d502:b0:1ca:42b:f625 with SMTP id b2-20020a170902d50200b001ca042bf625mr8801442plg.3.1697378637535; Sun, 15 Oct 2023 07:03:57 -0700 (PDT) From: Akihiko Odaki To: Cc: qemu-devel@nongnu.org, Yuri Benditovich , Andrew Melnychenko , "Michael S . Tsirkin" , Jason Wang , Akihiko Odaki Subject: [PATCH v4 14/20] virtio-net: Do not clear VIRTIO_NET_F_HASH_REPORT Date: Sun, 15 Oct 2023 23:02:46 +0900 Message-ID: <20231015140259.259434-15-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231015140259.259434-1-akihiko.odaki@daynix.com> References: <20231015140259.259434-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::633; envelope-from=akihiko.odaki@daynix.com; helo=mail-pl1-x633.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1697378900885100001 Content-Type: text/plain; charset="utf-8" virtio-net can report hash values even if the peer does not have a virtio-net header. Signed-off-by: Akihiko Odaki --- hw/net/virtio-net.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 20df40442d..8865825362 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -763,8 +763,6 @@ static uint64_t virtio_net_get_features(VirtIODevice *v= dev, uint64_t features, virtio_clear_feature(&features, VIRTIO_NET_F_GUEST_TSO4); virtio_clear_feature(&features, VIRTIO_NET_F_GUEST_TSO6); virtio_clear_feature(&features, VIRTIO_NET_F_GUEST_ECN); - - virtio_clear_feature(&features, VIRTIO_NET_F_HASH_REPORT); } =20 if (!peer_has_vnet_hdr(n) || !peer_has_ufo(n)) { --=20 2.42.0