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 01370A00BE; Fri, 12 Jun 2020 23:30:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E7F601D146; Fri, 12 Jun 2020 23:26:58 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id E60D11C01E for ; Fri, 12 Jun 2020 23:26:35 +0200 (CEST) IronPort-SDR: rI0JwaOZ6U0MC/jlqz+0sWrxt8wrXUJVIija64hE/s3zIdzwjNj9vl/bdbGLJ48v1VkfmsTXw1 bSD5xG+DC8pw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2020 14:26:35 -0700 IronPort-SDR: bE8t86Kkdh5J5OcajYAz3KU+ovvJixspTzts432gLs6MfE7UtBVe0+GnlIay9KPxpNrUYIZU1J VlNYW5cQD7VA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,504,1583222400"; d="scan'208";a="272035933" Received: from txasoft-yocto.an.intel.com ([10.123.72.192]) by orsmga003.jf.intel.com with ESMTP; 12 Jun 2020 14:26:35 -0700 From: "McDaniel, Timothy" To: jerinj@marvell.com Cc: dev@dpdk.org, gage.eads@intel.com, harry.van.haaren@intel.com Date: Fri, 12 Jun 2020 16:24:32 -0500 Message-Id: <20200612212434.6852-26-timothy.mcdaniel@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20200612212434.6852-1-timothy.mcdaniel@intel.com> References: <20200612212434.6852-1-timothy.mcdaniel@intel.com> Subject: [dpdk-dev] [PATCH 25/27] event/dlb: add enqueue and its burst variants 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" Change-Id: I58cb02dc040aa6dcf30992ea57ff3f332b4946f2 Signed-off-by: McDaniel, Timothy --- drivers/event/dlb/dlb.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/event/dlb/dlb.c b/drivers/event/dlb/dlb.c index eef7c4f43..282d60f73 100644 --- a/drivers/event/dlb/dlb.c +++ b/drivers/event/dlb/dlb.c @@ -1805,6 +1805,14 @@ dlb_event_enqueue_delayed(void *event_port, } static uint16_t +dlb_event_enqueue_new_burst(void *event_port, + const struct rte_event events[], + uint16_t num) +{ + return __dlb_event_enqueue_burst(event_port, events, num, false); +} + +static uint16_t dlb_event_enqueue_new_burst_delayed(void *event_port, const struct rte_event events[], uint16_t num) @@ -1813,6 +1821,14 @@ dlb_event_enqueue_new_burst_delayed(void *event_port, } static uint16_t +dlb_event_enqueue_forward_burst(void *event_port, + const struct rte_event events[], + uint16_t num) +{ + return __dlb_event_enqueue_burst(event_port, events, num, false); +} + +static uint16_t dlb_event_enqueue_forward_burst_delayed(void *event_port, const struct rte_event events[], uint16_t num) @@ -2917,6 +2933,10 @@ dlb_entry_points_init(struct rte_eventdev *dev) /* Expose PMD's eventdev interface */ dev->dev_ops = &dlb_eventdev_entry_ops; + dev->enqueue = dlb_event_enqueue; + dev->enqueue_burst = dlb_event_enqueue_burst; + dev->enqueue_new_burst = dlb_event_enqueue_new_burst; + dev->enqueue_forward_burst = dlb_event_enqueue_forward_burst; } -- 2.13.6