aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>2018-11-23 03:24:39 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2018-12-04 18:48:31 +0300
commit92c8ebd0b9ec85a71e3993c4864d48bcbb30a012 (patch)
treed5fab568bf8b3d5d1101e88014efa6e56ed5e347
parent3e2e07762422a75298cab27fbab64fb4a6f9383c (diff)
downloadodp-api-next.tar.gz
linux-gen: event: support flow-awareness APIapi-next
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
-rw-r--r--platform/linux-generic/odp_event.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/platform/linux-generic/odp_event.c b/platform/linux-generic/odp_event.c
index bb378528..bdde93e1 100644
--- a/platform/linux-generic/odp_event.c
+++ b/platform/linux-generic/odp_event.c
@@ -59,6 +59,19 @@ int odp_event_type_multi(const odp_event_t event[], int num,
return i;
}
+/* For now ODP generic does not support flow awareness,
+ * so all flow ids are zero. */
+uint32_t odp_event_flow_id(odp_event_t event ODP_UNUSED)
+{
+ return 0;
+}
+
+void odp_event_flow_id_set(odp_event_t event ODP_UNUSED,
+ uint32_t flow_id ODP_UNUSED)
+{
+ /* Do nothing */
+}
+
void odp_event_free(odp_event_t event)
{
switch (odp_event_type(event)) {