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 E157BA0C3F; Thu, 15 Apr 2021 18:22:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C11C71623D7; Thu, 15 Apr 2021 18:22:45 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mails.dpdk.org (Postfix) with ESMTP id D954E1623CF for ; Thu, 15 Apr 2021 18:22:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618503764; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+2TYwEtTlXRaZRiOKVAELphxZFcs1r+s7g2KvMrB4tE=; b=Q/AmhS4TOiwLOVKAUOGQ9mN7T8Ag6eqGf35szXahitucllBYBLq5aJ9xkqb4RbZdarka7f DAFcMBopHTR05QcAxYpDU8yGybycJd2+UkB+EQKuxty4h7krFuNb40AohWKX6URgU2KiPo 5FbsPPhTB80SC+YWydgfBoQIva37g70= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-554-g_GHf_1nP8W7BdfkoHYnYw-1; Thu, 15 Apr 2021 12:22:42 -0400 X-MC-Unique: g_GHf_1nP8W7BdfkoHYnYw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C2A938030A1 for ; Thu, 15 Apr 2021 16:22:41 +0000 (UTC) Received: from [10.36.110.28] (unknown [10.36.110.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E769E5C3E4; Thu, 15 Apr 2021 16:22:40 +0000 (UTC) To: Balazs Nemeth , dev@dpdk.org References: <94518e576d77c6c0a4ae2f8cfa0b543213be77db.1618319906.git.bnemeth@redhat.com> From: Maxime Coquelin Message-ID: <4ce30a44-a5c1-4620-db57-2cfcd63eb5cf@redhat.com> Date: Thu, 15 Apr 2021 18:22:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3] vhost: don't track remaining packets separately 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 Sender: "dev" On 4/13/21 3:31 PM, Balazs Nemeth wrote: > The remained variable stores the same information as the difference > between count and pkt_idx. Remove the remained variable to simplify. > > Signed-off-by: Balazs Nemeth > --- > lib/librte_vhost/virtio_net.c | 13 +++---------- > 1 file changed, 3 insertions(+), 10 deletions(-) > Reviewed-by: Maxime Coquelin Thanks, Maxime