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 369A546093; Wed, 15 Jan 2025 17:41:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BC9E5402B5; Wed, 15 Jan 2025 17:41:33 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 2BBCD40298 for ; Wed, 15 Jan 2025 17:41:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1736959291; 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=iWDtbx8/7hviuunN2TF0mzVs5rGEICJNQQZG6EKE+jvfJfyb3xJLPCpQvariWYnveZ+wgJ KQ5uY2HzLlXNSVJU1EQej3FQyKRNPGVJBS3dsrO+t7vnd70a59uHqZGqwgpqsq2XSUomsI 29kNHSQ/osa9gC2mTC6D9K26qK9fhxY= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-489-01g22rNTNiCqpsXY3kTPWw-1; Wed, 15 Jan 2025 11:41:30 -0500 X-MC-Unique: 01g22rNTNiCqpsXY3kTPWw-1 X-Mimecast-MFC-AGG-ID: 01g22rNTNiCqpsXY3kTPWw Received: by mail-lf1-f72.google.com with SMTP id 2adb3069b0e04-53e4bdde259so3160728e87.1 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=RIkWRkaOR+Nu5m4BQSSIQft6IZxQ/5W7H74m+fNOR/ZbQy5uz6OnkYPBkvUn7c/n8k /UA4Z6ZKUkOnHa+MQ5v5G3UOfzxYgk/ETlnrclFqQUyrhnHqwCx75PHg/ayoAOvgQLKh toNrxIAok6ii8qiV1hSkHEuEKUNlAsizueYQeWj+4MnsdpNjbZJABhKqR8i5711tVYd6 tg07oJ6mQDx5siZCarYnyecukuYSR4IFHivgZ0uZ5uRVKeBzUDLeENACMue9VKVpVGJe m4GEmj6SHYsBlUvFpkXYQ7W7zeroXvTjOGjTfWauXVIgYJwJlt+N9QdqsP8Gg1w0Mi6w 6Jmg== X-Gm-Message-State: AOJu0Yyarkcdzaz7+f5KrWakhC+zuvwzVDGBMHCK33lMuNlPQ9wGUFfv f/hRm8RiUD7r5rcj9EdQsN880uoxl7nD4zMCYxg/Hnw4ocS1tRUDAJ+IevsWfo8nbyi1PQ3Ht+g aY7eyZac+2gdDoSSh9dLftoI49PS6p0yxeE+6GCngqAE+VfVDEBKsEDZQCeBgxif1hWuMgo9f8T tIzHj73VOxAbc9qiI= X-Gm-Gg: ASbGnctlfIKAT5HaPPKB9fR0twF7uvDKoXnEe7am1CfRL415fyPKaAkHEHKrlXHYNM3 sUqIDqrxHzDZpoCOrMhPBI5tQyXHEP4JFG3o4oaps X-Received: by 2002:a05:6512:1388:b0:540:1e17:10eb with SMTP id 2adb3069b0e04-54284811017mr10220230e87.48.1736959288870; 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: U1eWE1g3ijUz6CkARw2ZEFQl_BDdyVBzZulhCuzhtZM_1736959289 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-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