Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp952286pxb; Fri, 22 Apr 2022 15:10:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQ1jCWooMx5h6NxYrJEaOb60swKbmtRVBTuhf0d8XvhZEgsIt24urPLdPZF6GXow5VCpHG X-Received: by 2002:a17:90b:4f48:b0:1d2:d1fa:4dbd with SMTP id pj8-20020a17090b4f4800b001d2d1fa4dbdmr7659232pjb.246.1650665454323; Fri, 22 Apr 2022 15:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650665454; cv=none; d=google.com; s=arc-20160816; b=Biwd2+RP6QwpArIEb6Vmn4yUMNiHIcsfEf32paJBV9LjDjcrY0tiD/aTup9lId0Ulc wLR7vPSa/wT7ZrZZBTdwY6zLEqtL1TgAmcuQOXEU6Yop2bKpINTbwL0j7LlTiMITh2j6 b0+2edLpUMom74ltB9FgzhcNC9gk17Efgq0j/ZrZ2I89+YctFoVGmdtZMFEg323EsbhQ K1LS+mfPzTIqsbiryhEFn4Tv5qA3Sv0otJf+atDhvEpXXOEnqo/1xsqGx2VGxe26Xwe/ m512lR9iiAYHo8yikviZ7oBKvTaNKW2qtTSXwQ9pcbOAKMPNIE8daeSZEZcuwPMFdSTs uK3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ctcaNqnsK/9euwlyEAdPOaYIg/qSLmmC7N58OzhpKVw=; b=Wl9Mh8ueefxbsNFFzK+GS8OmISKRHap6YQN7yaxmjg08Y96g/03slRJHgHnoVafgNh F+a72g2pVLCxTIGVQJJ2hwf58ArlBig27h9HVrnt39Pfbaz3UFUpizhbVPZ9gY5UlrXf QaHQ6xl+OsIYfQp0mw4ZimnL//vuQxf1j8YDVut8WrbSArqwukyz1dQChtjCTe6+csi/ 9dCR/Smt2c31998g4LWvaw/jbAULhy6owzeNN52DkIEIWNVp6nQ6aa4hZ5+Syk3YjIPO n3GYw0MjGPTc1fexCU3BHYvNj6Vrn0NJu6Z44JbzRLYjBl5AxHhCKQkDFqa4scgCvtYQ dweg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=E9rP+bSJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h32-20020a632120000000b003aa33b302b2si9663883pgh.434.2022.04.22.15.10.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:10:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=E9rP+bSJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 481261BD5AF; Fri, 22 Apr 2022 13:16:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389994AbiDUPYS (ORCPT + 99 others); Thu, 21 Apr 2022 11:24:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232403AbiDUPYR (ORCPT ); Thu, 21 Apr 2022 11:24:17 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FFD93BBF8; Thu, 21 Apr 2022 08:21:27 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id l7so10797523ejn.2; Thu, 21 Apr 2022 08:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ctcaNqnsK/9euwlyEAdPOaYIg/qSLmmC7N58OzhpKVw=; b=E9rP+bSJG/6inY0A49vi66QRg78rzON90dZvX/SL1heSDeZalFx5qJacZL+5b0LwDc Rqtbufwnx3uWumuSca12mqYfn6umHhBhahyiVTO7/fTqbSDJADWJj7sKlcRHZhT+zquq zW3N+GzxRg4DnVHpOjXryeGDovu4ihr8UHiqUFShOKg44yM/HDs+5bCLx6bUbdzJcfI7 Iq7w64TAQ2YcZ8VwagSHguCSAHjwtSJvjYRstukcEcTUJBr9bNumy48rTACXIpNVPEBw JdwYNYJPfntnDaqkW0Eox8yoQ+dgLGIQvy/htqtgTmvRbE5uqK/nQC4fLzVt2VcE8WvT Dz6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ctcaNqnsK/9euwlyEAdPOaYIg/qSLmmC7N58OzhpKVw=; b=XNXX3wO8y2nkT1xE2h/jjOKp5j8iue2tcxERhcw4SJ/1rSv1eVlyEgSxEjJkrPsyBi NeRhsjxirswfXTiHa5lPjajEycuwiT35KfX8YIh82HsV8n3o8BtnPY7TVKX74KHCQBb8 TKArtznimMO5AoXseVDM7I/CqESEblGvjdjWyjJXZRcsIoZypJyFkhkSpZo1WNU6WH+L BX4Sw9LLM9DwS68Bj7VnXflENpyTN8eRViDjbxl+tz/ZqDi10BX3SAp5LNS4VtHF4cGN GK+8YI1lfTpcBJKgjznwlKj0CZ0k9o3MEQxe0gfy81K1prm9syInnYZdzSaPRsuZIZnY 6wDg== X-Gm-Message-State: AOAM531nOGb5jxjiobpVuhPaKbQomPfAJk4afz1T3Q3PsVTwIoMDekM5 MW2NXid9HP/LMyla4spi5PM= X-Received: by 2002:a17:906:a08b:b0:6b9:2e20:f139 with SMTP id q11-20020a170906a08b00b006b92e20f139mr15834ejy.463.1650554485514; Thu, 21 Apr 2022 08:21:25 -0700 (PDT) Received: from anparri (host-79-27-69-122.retail.telecomitalia.it. [79.27.69.122]) by smtp.gmail.com with ESMTPSA id f5-20020a1709067f8500b006da68bfdfc7sm7956486ejr.12.2022.04.21.08.21.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 08:21:24 -0700 (PDT) Date: Thu, 21 Apr 2022 17:21:17 +0200 From: Andrea Parri To: Stefano Garzarella Cc: KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Michael Kelley , David Miller , Jakub Kicinski , Paolo Abeni , linux-hyperv@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/5] hv_sock: Copy packets sent by Hyper-V out of the ring buffer Message-ID: <20220421152117.GA4679@anparri> References: <20220420200720.434717-1-parri.andrea@gmail.com> <20220420200720.434717-3-parri.andrea@gmail.com> <20220421135839.2fj6fk6bvlrau73o@sgarzare-redhat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220421135839.2fj6fk6bvlrau73o@sgarzare-redhat> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > @@ -378,6 +381,8 @@ static void hvs_open_connection(struct vmbus_channel *chan) > > rcvbuf = ALIGN(rcvbuf, HV_HYP_PAGE_SIZE); > > } > > > > + chan->max_pkt_size = HVS_MAX_PKT_SIZE; > > + > > premise, I don't know HyperV channels :-( > > Is this change necessary to use hv_pkt_iter_first() instead of > hv_pkt_iter_first_raw()? Yes, the change is required to initialize the buffer which holds the copies of the incoming packets (in hv_ringbuffer_init()). > If yes, then please mention that you set this value in the commit message, > otherwise maybe better to have a separate patch. Sure, will do. Thanks, Andrea