From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E1475FFA for ; Tue, 31 Jan 2017 17:14:45 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 31 Jan 2017 08:14:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,315,1477983600"; d="scan'208";a="815468111" Received: from silpixa00398672.ir.intel.com ([10.237.223.128]) by FMSMGA003.fm.intel.com with ESMTP; 31 Jan 2017 08:14:43 -0800 From: Harry van Haaren To: dev@dpdk.org Cc: jerin.jacob@caviumnetworks.com, Harry van Haaren Date: Tue, 31 Jan 2017 16:14:18 +0000 Message-Id: <1485879273-86228-1-git-send-email-harry.van.haaren@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484580885-148524-1-git-send-email-harry.van.haaren@intel.com> References: <1484580885-148524-1-git-send-email-harry.van.haaren@intel.com> Subject: [dpdk-dev] [PATCH v2 00/15] next-eventdev: event/sw software eventdev 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, 31 Jan 2017 16:14:46 -0000 The following patchset adds software eventdev implementation to the next-eventdev tree. This implementation is based on the previous software eventdev v1 patchset, now with comments addressed: 1) xstats api return values changed to be consistent 2) xstats api [out] added to appropriate values 3) xstats api now uses xxx_get() for consistency 4) patch names for check-log.sh 5) checkpatch issues resolved (where it makes sense to, there are certain places where fixing checkpatch makes the code less readable. These checkpatch warnings will still show up - I see no alternative) In addition, the following improvements have been made to the patchset: 1) Adds test to run automatically with make test 2) Rework the sw implementation event credit scheme The first two patches make changes to the eventdev API, then the software implementation is added, and finally tests are added for the sw eventdev implementation. This patchset contains the work of multiple developers, please see signoffs on each patch. Signed-off-by: Harry van Haaren Bruce Richardson (15): eventdev: remove unneeded dependencies eventdev: add APIs for extended stats event/sw: add new software-only eventdev driver event/sw: add device capabilities function event/sw: add configure function event/sw: add fns to return default port/queue config event/sw: add support for event queues event/sw: add support for event ports event/sw: add support for linking queues to ports event/sw: add worker core functions event/sw: add scheduling logic event/sw: add start stop and close functions event/sw: add dump function for easier debugging event/sw: add xstats support app/test: add unit tests for SW eventdev driver app/test/Makefile | 5 +- app/test/autotest_data.py | 26 + app/test/test_sw_eventdev.c | 2071 +++++++++++++++++++++++++ config/common_base | 5 + drivers/event/Makefile | 1 + drivers/event/sw/Makefile | 69 + drivers/event/sw/event_ring.h | 179 +++ drivers/event/sw/iq_ring.h | 176 +++ drivers/event/sw/rte_pmd_evdev_sw_version.map | 3 + drivers/event/sw/sw_evdev.c | 754 +++++++++ drivers/event/sw/sw_evdev.h | 291 ++++ drivers/event/sw/sw_evdev_scheduler.c | 602 +++++++ drivers/event/sw/sw_evdev_worker.c | 186 +++ drivers/event/sw/sw_evdev_xstats.c | 404 +++++ lib/librte_eventdev/Makefile | 1 - lib/librte_eventdev/rte_eventdev.c | 63 + lib/librte_eventdev/rte_eventdev.h | 85 +- lib/librte_eventdev/rte_eventdev_pmd.h | 60 + lib/librte_eventdev/rte_eventdev_version.map | 3 + mk/rte.app.mk | 1 + 20 files changed, 4981 insertions(+), 4 deletions(-) create mode 100644 app/test/test_sw_eventdev.c create mode 100644 drivers/event/sw/Makefile create mode 100644 drivers/event/sw/event_ring.h create mode 100644 drivers/event/sw/iq_ring.h create mode 100644 drivers/event/sw/rte_pmd_evdev_sw_version.map create mode 100644 drivers/event/sw/sw_evdev.c create mode 100644 drivers/event/sw/sw_evdev.h create mode 100644 drivers/event/sw/sw_evdev_scheduler.c create mode 100644 drivers/event/sw/sw_evdev_worker.c create mode 100644 drivers/event/sw/sw_evdev_xstats.c -- 2.7.4