From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C38E046093 for ; Wed, 15 Jan 2025 17:41:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4AED24042F; Wed, 15 Jan 2025 17:41:35 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 18C68402E6 for ; Wed, 15 Jan 2025 17:41:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1736959293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rrsoGxt8VtO7gfpP4C5kUtkLLcVsDfr50FgpE6z7nnA=; b=hlvPupNVI9bX8FwqFqQtyIhxEoSAmZJ6My4J/is5ajQKuo4oUoIwWxYKD8gjiGphlajBo+ KrWI8SCCzh92/NQzsGLVk/3NUvM2saG+NoUvXLlt4E4x23byZf+NcmX6FffcKAFAfO5Sxh TvmXJyCkc4KWt9+n+16QwAFsEaU4QNo= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-150-zp4FAzibP5qJIq0c4QUjxQ-1; Wed, 15 Jan 2025 11:41:30 -0500 X-MC-Unique: zp4FAzibP5qJIq0c4QUjxQ-1 X-Mimecast-MFC-AGG-ID: zp4FAzibP5qJIq0c4QUjxQ Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-5401af85368so3447654e87.2 for ; Wed, 15 Jan 2025 08:41:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736959289; x=1737564089; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rrsoGxt8VtO7gfpP4C5kUtkLLcVsDfr50FgpE6z7nnA=; b=F795FaFb+pbpDHEj4NcYZyugFGU0AdFVS74EimNmwCiryExD0SaiMerXtAGQOnIAhj xI8eTDYJqYf6VhXJojc7RrXkO412H2YCbQjBNFjUWDsQgSj+rfwgjVdhUR+YxaGPgR2b Tw7h6yaxUdiW5BD61NiVUy9xsiRHq6d4GY2sJKrX7r9ohBnf8Lgeu7iy9l+RLp0kDtsI 4d0CONphrdTU3ipBcIJ7aX7rgofcm/m4Sjjk571AGAq6nJpz2Mp8RjcdHIQdfEv5SPPo J+RzSCyrFGP+PfDRVUBUGC7ujlI7WoubcIo3/gCGRssDzIjtS++UC2mS57VR9UQ+PCoR 3axg== X-Forwarded-Encrypted: i=1; AJvYcCXRTr4VRuafZXpgMkYMSvQFVnlVF/17A2hgFIWER1iJDlLqYO27e/X8PWQjOTWImvrZ0qupnNY=@dpdk.org X-Gm-Message-State: AOJu0Yw/kRMEsRq10eyPvMJ6YPry/sEBcfc1OCSUJD6GGUiSCnBZmuYG WiiEieHPIJCyReujpd+x+3Tz5ECJZMVm9XSsBA41MrmQxuUXLQlJMlc99Fn/l9I3+toyJvMzhC7 3DKjmMB7N0b242IE21sC8j39piLbwIh/xS2dqwjSz/03f41tyREAkuVYRjnNx4g+LIQ6d0HL1zX ocJQdx4OlfRB2gmdK7aAo= X-Gm-Gg: ASbGncvWDqfGs7kkI3UwZmmpb794FLd7wRojlOjC4wjbAf3z+MgFpbUn7Xpv5mkewpB P2nMszbi+eHRa8fpWhuFSrPOuQ1ynZRhZK6/CFrE8 X-Received: by 2002:a05:6512:1388:b0:540:1e17:10eb with SMTP id 2adb3069b0e04-54284811017mr10220228e87.48.1736959288864; Wed, 15 Jan 2025 08:41:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGbBd9eyWud4HyOJNd37vcdlJVeB4vTLGGLxJhDNGRPsc3R3CepZkUWoQ8nDm9Gq8wiwiOEQ4ZvGEHfqMlodg= X-Received: by 2002:a05:6512:1388:b0:540:1e17:10eb with SMTP id 2adb3069b0e04-54284811017mr10220222e87.48.1736959288491; Wed, 15 Jan 2025 08:41:28 -0800 (PST) MIME-Version: 1.0 References: <20250115125938.2699577-1-maxime.coquelin@redhat.com> <20250115125938.2699577-2-maxime.coquelin@redhat.com> In-Reply-To: <20250115125938.2699577-2-maxime.coquelin@redhat.com> From: David Marchand Date: Wed, 15 Jan 2025 17:41:17 +0100 X-Gm-Features: AbW1kvZjFzE5j72Kx4VKtvkUtM0uB5OxauEmkxEYFeR2i0SIJRyS8NGWmNnENqY Message-ID: Subject: Re: [PATCH v2 1/4] vhost: fix missing packets count reset when not ready To: Maxime Coquelin Cc: dev@dpdk.org, chenbox@nvidia.com, stable@dpdk.org X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: clKwFSh6vQ5zBgRzSaawZyCf2fJTD7Vwjo_ujaiL144_1736959289 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Wed, Jan 15, 2025 at 1:59=E2=80=AFPM Maxime Coquelin wrote: > > This patch fixes the rte_vhost_dequeue_burst return value > when the virtqueue is not ready. Without it, a discrepancy > between the packet array and its size is faced by the caller > of this API when the virtqueue is not ready. > > Fixes: 9fc93a1e2320 ("vhost: fix virtqueue access check in datapath") > Cc: stable@dpdk.org > > Signed-off-by: Maxime Coquelin Good catch! I am surprised no one caught the issue earlier. Reviewed-by: David Marchand --=20 David Marchand