Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from ws5-mx01.kavi.com (ws5-mx01.kavi.com [34.193.7.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0FDFBC7618E for ; Wed, 26 Apr 2023 14:03:46 +0000 (UTC) Received: from lists.oasis-open.org (oasis.ws5.connectedcommunity.org [10.110.1.242]) by ws5-mx01.kavi.com (Postfix) with ESMTP id 27AEE2AF8E for ; Wed, 26 Apr 2023 14:03:46 +0000 (UTC) Received: from lists.oasis-open.org (oasis-open.org [10.110.1.242]) by lists.oasis-open.org (Postfix) with ESMTP id 14B43986647 for ; Wed, 26 Apr 2023 14:03:46 +0000 (UTC) Received: from host09.ws5.connectedcommunity.org (host09.ws5.connectedcommunity.org [10.110.1.97]) by lists.oasis-open.org (Postfix) with QMQP id 0296298663C; Wed, 26 Apr 2023 14:03:46 +0000 (UTC) Mailing-List: contact virtio-comment-help@lists.oasis-open.org; run by ezmlm List-ID: Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Received: from lists.oasis-open.org (oasis-open.org [10.110.1.242]) by lists.oasis-open.org (Postfix) with ESMTP id E2D0398663F; Wed, 26 Apr 2023 14:03:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at kavi.com X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=hengqi@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0Vh3Z.YL_1682517813; Message-ID: <1d0adb7d-fcc8-404d-8105-bc1f818bc3a3@linux.alibaba.com> Date: Wed, 26 Apr 2023 22:03:30 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 To: Parav Pandit , "virtio-dev@lists.oasis-open.org" , "virtio-comment@lists.oasis-open.org" Cc: "Michael S . Tsirkin" , Jason Wang , Yuri Benditovich , Xuan Zhuo References: <20230423073532.105636-1-hengqi@linux.alibaba.com> From: Heng Qi In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [virtio-comment] RE: [PATCH v13] virtio-net: support inner header hash 在 2023/4/26 下午9:47, Parav Pandit 写道: > >> From: Heng Qi >> Sent: Wednesday, April 26, 2023 9:43 AM >>> "With that no need to define two fields at two different places in >>> config area and also in cvq." >> I'm not sure if this is sufficiently motivated, RSS also has supports_hash_types >> in config space. >> > There are many fields grown to MMIO config space because 0.9.5 has config space there. > These are usually one time read or rarely used; hence it doesn’t need to come from this area of the device to be _always_ available. Yes. supported_tunnel_hash_types If in cvq, each GET command needs to return supported_tunnel_hash_types and hash_tunnel_types, but users may only need the hash_tunnel_types "SET" by themselves. > >> We don't actually need cvq and config to sync on >> supported_tunnel_hash_types, since it doesn't need to change (meaning >> supported_tunnel_hash_types doesn't send configuration change >> notifications). >> > It doesn’t but device is expected to publish the value at two places. Yes, but that seems like a tiny cost, and the cvq command-related structure is much simpler. > >>>> +For scenarios with sufficient external entropy or no internal >>>> hashing requirements, inner header hash may not be needed: >>>> +A tunnel is often expected to isolate the external network from the >>>> internal one. By completely ignoring entropy >>>> +in the external header and replacing it with entropy from the >>>> internal header, for hash calculations, this expectation >>> You wanted to say inner here like rest of the places. >>> >>> s/internal header/inner header >> I want to make the 'external' and 'internal' correspond, but avoid the internal >> header, and use a unified 'inner header' is also reasonable.:) >> > Since in rest of other description, we refer to it as "outer", it is better to keep it consistent as outer instead of external here. Totally agree. Thanks. This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC. In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting. Subscribe: virtio-comment-subscribe@lists.oasis-open.org Unsubscribe: virtio-comment-unsubscribe@lists.oasis-open.org List help: virtio-comment-help@lists.oasis-open.org List archive: https://lists.oasis-open.org/archives/virtio-comment/ Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists Committee: https://www.oasis-open.org/committees/virtio/ Join OASIS: https://www.oasis-open.org/join/