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 9A5E4A0C43; Fri, 16 Apr 2021 13:14:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A6D21416E9; Fri, 16 Apr 2021 13:14:26 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id B428E14151D for ; Fri, 16 Apr 2021 13:14:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618571663; 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: in-reply-to:in-reply-to:references:references; bh=CcFBGn809f1xhif1GNw1HF4+KgtH5EeskLA5Pgi0kJU=; b=R/YRvcgENQwRtd/fLxdJ/AuJNysNc1i5k5zndke/jytclAvdziKKXwsZ/q1+vi7RvR3rgw gqc0/uxpV3dAl0rgxWD9kjueMvgOEFLmFl7spMPQkbw6qkynFSXcXLEbg9/3W/4OOq/lI7 nGOMu+sC2AR93vEbcea7dQ8vgq+03iY= Received: from mail-ua1-f72.google.com (mail-ua1-f72.google.com [209.85.222.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-575-7oey5eCOPcabSuNgWp0YGg-1; Fri, 16 Apr 2021 07:14:22 -0400 X-MC-Unique: 7oey5eCOPcabSuNgWp0YGg-1 Received: by mail-ua1-f72.google.com with SMTP id t88-20020a9f29610000b02901e095c2f4aaso1727088uat.0 for ; Fri, 16 Apr 2021 04:14:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CcFBGn809f1xhif1GNw1HF4+KgtH5EeskLA5Pgi0kJU=; b=JYNWBQgk0xIhBZzhHcL9FFtwErbcISkV1dxnoe72LhF/xA1aiJBmrzIT3k9NYN7/3h JxSLbbH03aCl8D+7Nr/JcYO9gQrF7IWNkk23sN6oG5DLeQx0Eht7vx9yFWO36QhCQ0xZ lpSOn5nXV/Vu3v/7Xy4mYAvdoLFdysDAQHOUpVxky2XMMzmPPNICR3dCRaK3s6WJZCKP nq6maM7qszugBYeiVluh/6RfFkthor0KbrKv5CsW82RYsfBv2QxhuKZ5Ffy5BT6Z8LzT /empxrbNm1DZpPaoZBSZjxSMak51tLigS2kZeK8bNjbdSuip570WTYs9Sr9qj4gbR9kv tI6w== X-Gm-Message-State: AOAM533vlG+MsqMBb0XSNio59wer46o/LJOAvUUcFKXY+nd6/HlTrrUd asNtVko4eEfwsuoSie/Hey8huCXrjJUa/4EUOFe90dyilFtkLcRjQuco7u/euLKVsKvTSRWsDFo Q6DVHTmV4U1cklO8oqtk= X-Received: by 2002:a67:de08:: with SMTP id q8mr6091662vsk.5.1618571661783; Fri, 16 Apr 2021 04:14:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxv5fAalcJxeMgmeCz5CB7KcN6paMQxZ6BqcgsDw+HfOmWeTVsIXUmmxw2f71eWFBEy4ZgGQjobO2fP+kjEzGY= X-Received: by 2002:a67:de08:: with SMTP id q8mr6091648vsk.5.1618571661579; Fri, 16 Apr 2021 04:14:21 -0700 (PDT) MIME-Version: 1.0 References: <09c440a88d9c546ebbe7d5d4cd2e0d2e53e4e870.1618568597.git.bnemeth@redhat.com> In-Reply-To: <09c440a88d9c546ebbe7d5d4cd2e0d2e53e4e870.1618568597.git.bnemeth@redhat.com> From: David Marchand Date: Fri, 16 Apr 2021 13:14:10 +0200 Message-ID: To: Balazs Nemeth Cc: dev , Maxime Coquelin Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v5] vhost: allocate and free packets in bulk in Tx packed 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 Fri, Apr 16, 2021 at 12:26 PM Balazs Nemeth wrote: > > Move allocation out further and perform all allocation in bulk. The same > goes for freeing packets. In the process, also introduce > virtio_dev_pktmbuf_prep and make virtio_dev_pktmbuf_alloc use that. > > Signed-off-by: Balazs Nemeth Reviewed-by: David Marchand -- David Marchand