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 16A1FA0C53; Thu, 14 Oct 2021 08:30:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A8CF640042; Thu, 14 Oct 2021 08:30:57 +0200 (CEST) Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) by mails.dpdk.org (Postfix) with ESMTP id 8288340041 for ; Thu, 14 Oct 2021 08:30:56 +0200 (CEST) Received: by mail-io1-f45.google.com with SMTP id d125so2469237iof.5 for ; Wed, 13 Oct 2021 23:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7NagCR6Hb9O+YCPz9HfcSGgR2borrx0siD17LIU5yCY=; b=VJAdVjDzUNcHaww5gLY+ljtRMzPO6/0ATMx2ZLFmV9PdvsIRGCZcvSJ+bbWXWPi/R6 hSBhDn31cCMyVRDlt4JXgutxrfB1+8NWsvIqS68r7w/65IXba2a2ZH44plPVZmJMzPuT o/NOpJBrM5Z5SWcwMGXhZfi0MEshSSLe3FwRk5WrPW+Xtl1Tok3rkjzygHBLhdTy8WpM FPPl18XUy0l1/Tqp4QQol3rMBdkZiYFnlix7pRJ/ZY+1ukYy5rK8nxwNEfTQIENdirja M/brVDY7zJ+e1EVtKMPOvPS58yPgv5taE8yfYhcYikk+Je23kka6OoiLPMLLmOwrhm/M x+uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7NagCR6Hb9O+YCPz9HfcSGgR2borrx0siD17LIU5yCY=; b=y2RwdIuA0QEKF88DMW0T1WDK3tNu+OkcxfGGiXqDKwsAxMaSoaNN8omB1NpS2QOVyY cFMh1t9AbhuxX9TmjSBW+rQNV3unqvVrG+50cLlPQTCBdl/HDznl0sTqVoQsxjXTrN2Z AGn1pHTKKvz4pMGwxYkatdPEcFwav3h/3XuW5vDMC0ZomU+Yw5+wZJ+um3mL08cohbwA 4ndv8lveA4FW9emxc42KxTm2QZEi2iTRmr3H9KMBhbcEeMlrWXmIRwFi/XHP0aSXMevX fsVYwFv83HYpJ4UvpM/aURnUZ11nE9yfnkxMBPNMN6CDb4T41dJKZazFngUEDu/5umRx 9coQ== X-Gm-Message-State: AOAM532tBKZA18eOh9Gh3JZkMoWO1DF8wxDej/mheltO6uvjpSD7r9KF Yhp7ViSkQ48qgaICXOccgcbL8GuCUs+laubPd3U= X-Google-Smtp-Source: ABdhPJwzmPqbZa73u28wk/jbq5yHQQ80bzBet9uEaANE6P8x07H95cCplwww7qgS6oej7q8Nr1dlFBBolwm+dm7aQog= X-Received: by 2002:a05:6638:35ac:: with SMTP id v44mr2767190jal.48.1634193055856; Wed, 13 Oct 2021 23:30:55 -0700 (PDT) MIME-Version: 1.0 References: <20211012210532.78287-1-rashmi.shetty@intel.com> <20211013201602.113694-1-rashmi.shetty@intel.com> In-Reply-To: <20211013201602.113694-1-rashmi.shetty@intel.com> From: Jerin Jacob Date: Thu, 14 Oct 2021 12:00:29 +0530 Message-ID: To: Rashmi Shetty , Pavan Nikhilesh Cc: dpdk-dev , Jerin Jacob , "Van Haaren, Harry" , pravin.pathak@intel.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v2] app/test-eventdev: add burst enqueue support 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 Thu, Oct 14, 2021 at 1:46 AM Rashmi Shetty wrote: > > This commit introduces a new command line option prod_enq_burst_sz > to set burst size for eventdev enqueue at producer in perf_queue > test. The newly added function perf_producer_burst is called when > prod_enq_burst_sz is greater than 1. > > Signed-off-by: Rashmi Shetty > --- > app/test-eventdev/evt_common.h | 1 + > app/test-eventdev/evt_main.c | 2 +- > app/test-eventdev/evt_options.c | 14 +++++ > app/test-eventdev/evt_options.h | 1 + > app/test-eventdev/test_perf_common.c | 81 +++++++++++++++++++++++++++- > app/test-eventdev/test_perf_common.h | 1 + Update doc/guides/tools/testeventdev.rst for this new command-line option and extended existing example command to use the new one as a separate command. > 6 files changed, 97 insertions(+), 3 deletions(-) > > diff --git a/app/test-eventdev/evt_common.h b/app/test-eventdev/evt_common.h > index 28afb114b3..f466434459 100644 > + struct perf_elt *m[MAX_PROD_ENQ_BURST_SIZE + 1] = {NULL}; Use memcpy, some old compiler may issue with this kind of usage. > + struct rte_event ev[MAX_PROD_ENQ_BURST_SIZE + 1]; > + uint32_t burst_size = opt->prod_enq_burst_sz; > + > + rte_event_dev_info_get(dev_id, &dev_info); > + if (dev_info.max_event_port_enqueue_depth < burst_size) > + burst_size = dev_info.max_event_port_enqueue_depth; > + > + if (opt->verbose_level > 1) > + printf("%s(): lcore %d dev_id %d port=%d queue %d\n", __func__, > + rte_lcore_id(), dev_id, port, p->queue_id); > +