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 E86F746092; Thu, 16 Jan 2025 11:10:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 298AA4065B; Thu, 16 Jan 2025 11:10:32 +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 13E284025F for ; Thu, 16 Jan 2025 11:10:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1737022229; 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=NLM4VbNo9cx/GGYIMyW9I3n+7WwrYQ1nyP5xUUT8N7g=; b=H9ZpWV9RkIAp/U6MEXKJssPdVMDaW9CJtm4BOa3qVGxx/AIPcFnk34ZVZojgxMz8YAbXcX tWOnmvF3fQWjgZUop6k7+HSbrLc/j/4pEQ4Fj69vbbLqlEKu+HrtXt1aADwm+Bi7Y3/jP7 zC7RIPD5XWIwWEXj9RXF4JxRdFCIejs= Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-609-LhId1z2AP_ugVOSV0bet_g-1; Thu, 16 Jan 2025 05:10:28 -0500 X-MC-Unique: LhId1z2AP_ugVOSV0bet_g-1 X-Mimecast-MFC-AGG-ID: LhId1z2AP_ugVOSV0bet_g Received: by mail-lf1-f71.google.com with SMTP id 2adb3069b0e04-5424a89c885so372780e87.0 for ; Thu, 16 Jan 2025 02:10:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737022227; x=1737627027; 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=NLM4VbNo9cx/GGYIMyW9I3n+7WwrYQ1nyP5xUUT8N7g=; b=ErOAPxutNF0EyvABcWNxD07CwfJF180PA/Uybs0shocyFDO1HeqAKmq/ePX294lou4 YecjgKdwlFUV0+Y/rKDWxBn6hlEFYmajxLujdfSY9cR1EDa5A9J6eLkGhXVoY9KaP+c1 dQN8DlL0QwFmkVJqaATLg2Xugmt3/UQw9TMGGsttOsrtQ4WnRsBVM2x6Y2X7pZUo+c48 UW51/rJJw9TJ9z9aiMIaXzO5M0AHpwhh/54FoYpUZls4RMh9fLonNmorTVXY/+4oy+dV L3HvV66eQYByJPe5vBAmYq5a52fQKRWwMBUtxL7sJUJiCyi4o75FsnMM5nd4kHikfakf Jg6g== X-Gm-Message-State: AOJu0YylGNuHYiZaMrzPG2XKGYtU6JBjQyyDPzvinSx4GJMMyVGpboEH B6FJCT2XmrMrJD3dQcMerHswZ7HKRuhFh03kFeqlNN8cVL4vYuqpzL4urLbVw9f0LUAkAJzI4e8 1/sK9AAHpOYVUoFoExmSMaIXwBoR7IIwc05PRCu1RCfxhhRN68MkKTSzePvbHpqGIAsqjhaIsU5 kqLeWsNqBaYmZlQ1s= X-Gm-Gg: ASbGncuAuzS+XrbUC5Rinj04nwzjSM6RjmEpb7ey+Ym01gkpkFq5VDEJp8cFDGcWdlF QRCyrKYwZ73iYR2NeYo2cTSkP8TW+t/ktmjMy3MDb X-Received: by 2002:a05:6512:4024:b0:540:22e0:1f80 with SMTP id 2adb3069b0e04-542845b6748mr11257579e87.20.1737022226623; Thu, 16 Jan 2025 02:10:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcoLwc1qN99V1mkhggV3EQpJYmsti3f2Y+ELKzGjqNXwZ4eMvghz3Jn+Pp0gCFuc2RMd66xYbRPbFAXzU2wdc= X-Received: by 2002:a05:6512:4024:b0:540:22e0:1f80 with SMTP id 2adb3069b0e04-542845b6748mr11257565e87.20.1737022226214; Thu, 16 Jan 2025 02:10:26 -0800 (PST) MIME-Version: 1.0 References: <20250116095416.3655699-1-maxime.coquelin@redhat.com> <20250116095416.3655699-2-maxime.coquelin@redhat.com> In-Reply-To: <20250116095416.3655699-2-maxime.coquelin@redhat.com> From: David Marchand Date: Thu, 16 Jan 2025 11:10:14 +0100 X-Gm-Features: AbW1kvYNxjieM5frcrmNkv0HHVWSowYleBJSr2N_ZXqRDq6Pa7um_rr94l29aU0 Message-ID: Subject: Re: [PATCH v3 1/3] 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: upNasqSvnt2tqN_1YC0VOmdTGWe0D-WYHQRTXCYPUI8_1737022227 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 Thu, Jan 16, 2025 at 10:54=E2=80=AFAM 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 Reviewed-by: David Marchand --=20 David Marchand