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 1173046092 for ; 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 CBB374025F; Thu, 16 Jan 2025 11:10:31 +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 180EC40613 for ; Thu, 16 Jan 2025 11:10:30 +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-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-130-aQPiMSjRNPCkvOU3hjjqxQ-1; Thu, 16 Jan 2025 05:10:28 -0500 X-MC-Unique: aQPiMSjRNPCkvOU3hjjqxQ-1 X-Mimecast-MFC-AGG-ID: aQPiMSjRNPCkvOU3hjjqxQ Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-30239c0fbdfso3801351fa.1 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=uW3hMiFtHV89q68tCUOneKwJCjr+zHErK8KQswlhP4V5DXfDGVggr7GK/Hl17CpcKC e+tvq5GYYUviI+BwEKxP+3s+1Xn/e1VkoCqYRRLxszygbMtVlsfVZROPGhtceCxl8Wtd TEVWH8mNunfJjY5RfmHLgNmwuAVM69bpV6dzERSICnbHNZpTBsv8GeRLTySiVaA6zcjQ tX/KEnXVAeLpLBsTd6jOFv3NISKEaIUx7nkcki3bpI1Lr3xmCksDbkI4ze3CDLD3+E2d 8mdR+kowgB16KoOMpsxTCvY7cF/GwpYkWJB4qGthSoj6IfAjE9Kn6XS5NJ2jIIGf/6Y1 4BtQ== X-Forwarded-Encrypted: i=1; AJvYcCVP4+gWm1xAueGUoKLuwpuBHRNdNVaNunK28UVFDcmfQ+NcDCKQrxeRs6QzntqeqvMWVo3TGqk=@dpdk.org X-Gm-Message-State: AOJu0Yw9rGZ4aMnIW1buDYtvfO3wyfelYCo2VUcOP7djQ3cLcCJ/znmf BIbSyXwtQ/7DGuUGzGMi/yyWSVbM2NRUpirQtpPUN2PxXQ3CCS/5SWYxq7m7Q67N19UjadB6Dzg i88kst06Ng2A0TRBau4Tq0djOB0RO50WXHbIaWCbYeBE4xOVDD5WdzM71g1gzf/0HGanJ+syrCx 3grgio/ywhlyaI1JNbEHY= X-Gm-Gg: ASbGncvdk+Eq3SMXhrif2YxteBboNFY05SFRxFBEdOTFSCMPP0jjgyQtgb2IvLMdAMq h7ccjg3NHQnh3z5L0gqEMlT35oMHh4qKgW/mjqW8K X-Received: by 2002:a05:6512:4024:b0:540:22e0:1f80 with SMTP id 2adb3069b0e04-542845b6748mr11257577e87.20.1737022226622; 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: GmQT0bNwxZEZy9iSge8moiVXS13KhK7Q_Ki3kgJNl6c_1737022227 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 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