From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id A53341B2F4 for ; Tue, 10 Oct 2017 15:43:37 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Oct 2017 06:43:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,505,1500966000"; d="scan'208";a="1180537430" Received: from unknown (HELO localhost.iind.intel.com) ([10.224.122.216]) by orsmga001.jf.intel.com with ESMTP; 10 Oct 2017 06:43:35 -0700 From: Nikhil Rao To: jerin.jacob@caviumnetworks.com, bruce.richardson@intel.com Cc: dev@dpdk.org Date: Wed, 11 Oct 2017 03:51:35 +0530 Message-Id: <1507674097-19597-6-git-send-email-nikhil.rao@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507674097-19597-1-git-send-email-nikhil.rao@intel.com> References: <1507674097-19597-1-git-send-email-nikhil.rao@intel.com> Subject: [dpdk-dev] [PATCH v6 5/7] eventdev: add event type for eth Rx adapter 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: , X-List-Received-Date: Tue, 10 Oct 2017 13:43:38 -0000 Add RTE_EVENT_TYPE_ETH_RX_ADAPTER event type. Certain platforms (e.g., octeontx), in the event dequeue function, need to identify events injected from ethernet hardware into eventdev so that DPDK mbuf can be populated from the HW descriptor. Events injected from ethernet hardware would use an event type of RTE_EVENT_TYPE_ETHDEV and events injected from the rx adapter service function would use an event type of RTE_EVENT_TYPE_ETH_RX_ADAPTER to help the event dequeue function differentiate between these two event sources. Signed-off-by: Nikhil Rao --- lib/librte_eventdev/rte_eventdev.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev/rte_eventdev.h index 1aa01b5c4..1dbc8728d 100644 --- a/lib/librte_eventdev/rte_eventdev.h +++ b/lib/librte_eventdev/rte_eventdev.h @@ -894,6 +894,8 @@ rte_event_dev_close(uint8_t dev_id); /**< The event generated from cpu for pipelining. * Application may use *sub_event_type* to further classify the event */ +#define RTE_EVENT_TYPE_ETH_RX_ADAPTER 0x4 +/**< The event generated from event eth Rx adapter */ #define RTE_EVENT_TYPE_MAX 0x10 /**< Maximum number of event types */ -- 2.14.1.145.gb3622a4