From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id D0F191BFD7 for ; Wed, 27 Jun 2018 18:06:36 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A94FF18A; Wed, 27 Jun 2018 09:06:35 -0700 (PDT) Received: from ubuntu.localdomain (u202406.usa.arm.com [10.171.18.29]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9CFF13F318; Wed, 27 Jun 2018 09:06:30 -0700 (PDT) From: Honnappa Nagarahalli To: dev@dpdk.org Cc: honnappa.nagarahalli@arm.com, gavin.hu@arm.com, nd@arm.com Date: Wed, 27 Jun 2018 11:06:13 -0500 Message-Id: <1530115574-102162-1-git-send-email-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [RFC] queue: introduce queue APIs and driver framework 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: Wed, 27 Jun 2018 16:06:37 -0000 DPDK offers pipeline model of packet processing. One of the key components of this model is the core to core packet exchange. rte_ring and rte_event_ring functions are 2 methods provided currently for core to core communication. However, these two do not separate the APIs from implementation. This does not allow using hardware queue implementations in pipeline model. This change adds queue APIs and driver framework so that HW queues can be used for core to core communication in pipeline model. When different implementations (ex: HW queues and rte_ring) are used for the same object in different platforms, it is important to make sure that the application is portable. Hence features of different implementations must be elevated to the API level, so that the application writers can make the right choice. Currently, basic APIs are created, will add more required APIs as this progresses. Honnappa Nagarahalli (1): queue: introduce queue APIs and driver framework lib/librte_queue/rte_queue.c | 122 ++++++++++++++++++++++ lib/librte_queue/rte_queue.h | 200 ++++++++++++++++++++++++++++++++++++ lib/librte_queue/rte_queue_driver.h | 157 ++++++++++++++++++++++++++++ 3 files changed, 479 insertions(+) create mode 100644 lib/librte_queue/rte_queue.c create mode 100644 lib/librte_queue/rte_queue.h create mode 100644 lib/librte_queue/rte_queue_driver.h -- 2.7.4