From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8FF69E8FDD8 for ; Wed, 4 Oct 2023 07:30:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241527AbjJDHab (ORCPT ); Wed, 4 Oct 2023 03:30:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241479AbjJDHa1 (ORCPT ); Wed, 4 Oct 2023 03:30:27 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E556AA7; Wed, 4 Oct 2023 00:30:24 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id 8D900C433C8; Wed, 4 Oct 2023 07:30:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696404624; bh=p4yLinEjIJBrFuw8sXLaLQnAZFkhWiUPbGiv8DnPTD0=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=qLrfTSxxcorg5t4dgwYQ9KAYYXZ1iL19zW+mWGa9Y6BVy2W0gsBct/LFcyWaD/XuC SbTdMVqE9Gcs8b8dbJ5TCuf4bBDkhmNZ8l6ShyFnf/9utRnuo/GPUdzJoVTTT7QsNg p60f6U/92iIBJeL3iVcB/iUjjFYfi5gs5QlSd/PLiBiKPQ4F4nF+GHGk6FnGfFDSJv +/6bFrGSieIFs8rlp+hFIcGCQAjD4YItalzzDLPaFfS1XR1Uzhf3eQerpdRRjv71hY 3E6/hp2BgX59AL0LJ7uoXGPEd4Ovw3M9gIwXR1lC8gqpaUf4B8ECh5BeDFDOhi8/i+ UJCtjNVUiGbEQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 6CCFCC595D0; Wed, 4 Oct 2023 07:30:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] vringh: don't use vringh_kiov_advance() in vringh_iov_xfer() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <169640462443.26245.17654721515803300599.git-patchwork-notify@kernel.org> Date: Wed, 04 Oct 2023 07:30:24 +0000 References: <20230925103057.104541-1-sgarzare@redhat.com> In-Reply-To: <20230925103057.104541-1-sgarzare@redhat.com> To: Stefano Garzarella Cc: virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, kvm@vger.kernel.org, mst@redhat.com, jasowang@redhat.com, linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (main) by David S. Miller : On Mon, 25 Sep 2023 12:30:57 +0200 you wrote: > In the while loop of vringh_iov_xfer(), `partlen` could be 0 if one of > the `iov` has 0 lenght. > In this case, we should skip the iov and go to the next one. > But calling vringh_kiov_advance() with 0 lenght does not cause the > advancement, since it returns immediately if asked to advance by 0 bytes. > > Let's restore the code that was there before commit b8c06ad4d67d > ("vringh: implement vringh_kiov_advance()"), avoiding using > vringh_kiov_advance(). > > [...] Here is the summary with links: - vringh: don't use vringh_kiov_advance() in vringh_iov_xfer() https://git.kernel.org/netdev/net/c/7aed44babc7f You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html