From: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
To: jerin.jacob@caviumnetworks.com
Cc: dev@dpdk.org, pbhagavatula@caviumnetworks.com,
nipun.gupta@nxp.com, hemant.agrawal@nxp.com,
nikhil.rao@intel.com, narender.vangati@intel.com,
rsanford@akamai.com
Subject: [dpdk-dev] [RFC PATCH v3 0/1] eventtimer: introduce event timer adapter
Date: Mon, 20 Nov 2017 16:35:32 -0600 [thread overview]
Message-ID: <1511217333-142455-1-git-send-email-erik.g.carrillo@intel.com> (raw)
In-Reply-To: <1506093431-57588-1-git-send-email-erik.g.carrillo@intel.com>
The following RFC patch contains a reworked version of the event timer adapter
logic that would be common to both the software and hardware implementations.
It contains an allocation scheme that separates the adapter state into two
parts: one part that is local to a process, and another that is shared between
processes. The process-local part contains fast-path function pointers valid
only in that process, and the shared part contains data that can be used in
both processes. It also lays out the mechanism by which eventdev PMDs can
plug their own implementations into the API if they wish to: if a PMD wishes
to provide an implementation for the event timer adapter API, it can define and
return an ops structure which the API will call through. Otherwise, a PMD
can return a null ops structure to allow the API to fall back on a default
software implementation that will be added in an upcoming version of this
patch.
checkpatches.sh reports a few warnings for "macros with flow control", but I
have left them in since they seem to be in common usage in DPDK. One other
checkpatch warning is caused by use of an extern in a .c file, but I left that
in since it was useful for splitting the software implementation into its own
file.
Thanks,
Gabriel
Erik Gabriel Carrillo (1):
eventtimer: introduce event timer adapter
doc/api/doxy-api-index.md | 1 +
drivers/event/sw/sw_evdev.c | 16 +
lib/librte_eventdev/Makefile | 4 +
lib/librte_eventdev/rte_event_timer_adapter.c | 428 +++++++++++++++++++++
lib/librte_eventdev/rte_event_timer_adapter.h | 427 ++++++++++++++++++++
.../rte_event_timer_adapter_driver.h | 159 ++++++++
lib/librte_eventdev/rte_eventdev.h | 3 +
lib/librte_eventdev/rte_eventdev_pmd.h | 7 +
lib/librte_eventdev/rte_eventdev_version.map | 15 +-
lib/librte_eventdev/sw_event_timer_adapter.c | 123 ++++++
test/test/Makefile | 1 +
test/test/test_event_timer_adapter.c | 249 ++++++++++++
12 files changed, 1432 insertions(+), 1 deletion(-)
create mode 100644 lib/librte_eventdev/rte_event_timer_adapter.c
create mode 100644 lib/librte_eventdev/rte_event_timer_adapter.h
create mode 100644 lib/librte_eventdev/rte_event_timer_adapter_driver.h
create mode 100644 lib/librte_eventdev/sw_event_timer_adapter.c
create mode 100644 test/test/test_event_timer_adapter.c
--
2.6.4
next prev parent reply other threads:[~2017-11-20 22:35 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-17 16:11 [dpdk-dev] [RFC PATCH 0/1] eventtimer: introduce event timer wheel Jerin Jacob
2017-08-17 16:11 ` [dpdk-dev] [RFC PATCH 1/1] " Jerin Jacob
2017-08-23 22:57 ` [dpdk-dev] [RFC PATCH 0/1] " Carrillo, Erik G
2017-08-25 10:25 ` Jerin Jacob
2017-08-29 15:02 ` Thomas Monjalon
2017-08-29 15:41 ` Jerin Jacob
2017-08-29 15:48 ` Thomas Monjalon
2017-08-29 16:07 ` Jerin Jacob
2017-09-22 15:17 ` [dpdk-dev] [RFC PATCH v2 0/1] eventtimer: introduce event timer adapter Erik Gabriel Carrillo
2017-09-22 15:17 ` [dpdk-dev] [RFC PATCH v2 1/1] " Erik Gabriel Carrillo
2017-10-03 14:37 ` [dpdk-dev] [RFC PATCH v2 0/1] " Jerin Jacob
2017-10-09 20:30 ` Carrillo, Erik G
2017-10-16 12:04 ` Pavan Nikhilesh Bhagavatula
2017-10-16 12:37 ` Pavan Nikhilesh Bhagavatula
2017-10-18 21:48 ` Carrillo, Erik G
2017-10-26 15:45 ` Pavan Nikhilesh Bhagavatula
2017-11-20 22:35 ` Erik Gabriel Carrillo [this message]
2017-11-20 22:35 ` [dpdk-dev] [RFC PATCH v3 1/1] " Erik Gabriel Carrillo
2017-11-23 4:37 ` Pavan Nikhilesh Bhagavatula
2017-11-27 14:47 ` Carrillo, Erik G
2017-11-28 17:40 ` [dpdk-dev] [RFC PATCH v4 0/4] " Erik Gabriel Carrillo
2017-11-28 17:40 ` [dpdk-dev] [RFC PATCH v4 1/4] " Erik Gabriel Carrillo
2017-11-29 10:29 ` Pavan Nikhilesh Bhagavatula
2017-11-28 17:40 ` [dpdk-dev] [RFC PATCH v4 2/4] eventtimer: add common code Erik Gabriel Carrillo
2017-11-29 5:19 ` Pavan Nikhilesh Bhagavatula
2017-11-30 20:59 ` Carrillo, Erik G
2017-12-01 5:13 ` Pavan Nikhilesh Bhagavatula
2017-12-01 20:19 ` Carrillo, Erik G
2017-11-28 17:40 ` [dpdk-dev] [RFC PATCH v4 3/4] eventtimer: add default software implementation stub Erik Gabriel Carrillo
2017-11-29 10:34 ` Pavan Nikhilesh Bhagavatula
2017-11-30 23:56 ` Carrillo, Erik G
2017-12-01 5:15 ` Pavan Nikhilesh Bhagavatula
2017-11-28 17:40 ` [dpdk-dev] [RFC PATCH v4 4/4] test: add event timer adapter auto-test Erik Gabriel Carrillo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1511217333-142455-1-git-send-email-erik.g.carrillo@intel.com \
--to=erik.g.carrillo@intel.com \
--cc=dev@dpdk.org \
--cc=hemant.agrawal@nxp.com \
--cc=jerin.jacob@caviumnetworks.com \
--cc=narender.vangati@intel.com \
--cc=nikhil.rao@intel.com \
--cc=nipun.gupta@nxp.com \
--cc=pbhagavatula@caviumnetworks.com \
--cc=rsanford@akamai.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).