From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AA6CDA04BA; Mon, 5 Oct 2020 11:26:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4A21E2F42; Mon, 5 Oct 2020 11:26:22 +0200 (CEST) Received: from mail-il1-f195.google.com (mail-il1-f195.google.com [209.85.166.195]) by dpdk.org (Postfix) with ESMTP id B4C2A29C6 for ; Mon, 5 Oct 2020 11:26:19 +0200 (CEST) Received: by mail-il1-f195.google.com with SMTP id t12so7151725ilh.3 for ; Mon, 05 Oct 2020 02:26:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3xw7nK6dNflpG5QmFoc271kCHBki/8OEjBQ8zpA9Aqo=; b=vOJD9mJ2LawRq+BeD7IaBT8JPMwRRHrypDT91SxGuOA51MB/nG4i5tw7XXUS9iEERE zLAayplVEgbi3K3MtI85mpQQl10WoMjG4sO83E2qF5G1y6SrVludC6JKR6gjUpXoaIRR qKNiIk4PLsobqT5yjf6vmJYIeFvicVLb3SRy38IWJGv+V0tmQyz21qaN/VWDKJ9h7Ula Agb54qjBCs56+JqRhVQyZ/KtteTta3FvA6WHLHCW3kZZRCSqksL8zs+P1xIwp7uIlaon ML2ct+JMlYVqdMDbKO3MUhKJFCDSMicoVfEv9izDNbu4ZhLexbNwsjvPeg/xzG9GVh5q IcuA== 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=3xw7nK6dNflpG5QmFoc271kCHBki/8OEjBQ8zpA9Aqo=; b=tReLsK/YW4FrTxATNkVF3TN7pdz+eSRTUWwQDpVh7IEEaub2i52ULbCtf8Zo2ujx31 ky2Oj3Yy4u6IGoDW3MqMlZh6LlylG+uL/mXQyhuypZ0SDBxLuOmOkU+5lhyeFrB5QJg4 ZyDF1ibwkaxVdM6JfBE7JdnUIl2v1Ru3R5BMSSij1Vpiw7uC0EI30XrtS/1MMA1vHcOx Cewn2ot77qBbTiC9j4axBRllCLfQa+Z+Pnt8nCTjCGNbMyKdt4VL9KqEMjzFuZstM0dl 7VwooiZiz3EUOjn7YfOSkAcDrn0PEo1lGFoWzsX9d+/fUHhe7RMVVUQGuMSausnm2JLR EnZg== X-Gm-Message-State: AOAM533Ei86lKqzWQcqeGszLw8/mUcJA+t5NP2WdbFGgzbKoS6KfHbFe 0TT61b4nVI4h8hK70ktixMa7uF0CU3gStIGrbKY= X-Google-Smtp-Source: ABdhPJzWXz3xvN8oX76Na18tUHXwrP8WL+wVXpTdBqhR4h4jOgHo5cnHpV6lZwxqOBUKBTWr/o9L4OBVSYoTIOToNJE= X-Received: by 2002:a92:770e:: with SMTP id s14mr11339893ilc.130.1601889978035; Mon, 05 Oct 2020 02:26:18 -0700 (PDT) MIME-Version: 1.0 References: <1600196207-31258-1-git-send-email-hkalra@marvell.com> <1600196207-31258-4-git-send-email-hkalra@marvell.com> In-Reply-To: <1600196207-31258-4-git-send-email-hkalra@marvell.com> From: Jerin Jacob Date: Mon, 5 Oct 2020 14:56:02 +0530 Message-ID: To: Harman Kalra Cc: Jerin Jacob , dpdk-dev Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH 4/4] app/eventdev: enable fast free offload X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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 Wed, Sep 16, 2020 at 12:27 AM Harman Kalra wrote: > > Since we are not holding the mbufs or creating any references > in the app, hence mbuf fast free offload can be enabled. > > Signed-off-by: Harman Kalra Reviewed-by: Jerin Jacob > --- > app/test-eventdev/test_pipeline_common.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/app/test-eventdev/test_pipeline_common.c b/app/test-eventdev/test_pipeline_common.c > index 17088b1b4..f0c0ffea7 100644 > --- a/app/test-eventdev/test_pipeline_common.c > +++ b/app/test-eventdev/test_pipeline_common.c > @@ -219,6 +219,11 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt) > return ret; > } > > + /* Enable mbuf fast free if PMD has the capability. */ > + if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE) > + local_port_conf.txmode.offloads |= > + DEV_TX_OFFLOAD_MBUF_FAST_FREE; > + > rx_conf = dev_info.default_rxconf; > rx_conf.offloads = port_conf.rxmode.offloads; > > -- > 2.18.0 >