DPDK  21.11.7-rc1
rte_eventdev.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2016 Cavium, Inc.
3  * Copyright(c) 2016-2018 Intel Corporation.
4  * Copyright 2016 NXP
5  * All rights reserved.
6  */
7 
8 #ifndef _RTE_EVENTDEV_H_
9 #define _RTE_EVENTDEV_H_
10 
209 #ifdef __cplusplus
210 extern "C" {
211 #endif
212 
213 #include <rte_common.h>
214 #include <rte_config.h>
215 #include <rte_errno.h>
216 #include <rte_mbuf_pool_ops.h>
217 #include <rte_memory.h>
218 #include <rte_mempool.h>
219 
220 #include "rte_eventdev_trace_fp.h"
221 
222 struct rte_mbuf; /* we just use mbuf pointers; no need to include rte_mbuf.h */
223 struct rte_event;
224 
225 /* Event device capability bitmap flags */
226 #define RTE_EVENT_DEV_CAP_QUEUE_QOS (1ULL << 0)
227 
232 #define RTE_EVENT_DEV_CAP_EVENT_QOS (1ULL << 1)
233 
239 #define RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED (1ULL << 2)
240 
248 #define RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES (1ULL << 3)
249 
255 #define RTE_EVENT_DEV_CAP_BURST_MODE (1ULL << 4)
256 
263 #define RTE_EVENT_DEV_CAP_IMPLICIT_RELEASE_DISABLE (1ULL << 5)
264 
274 #define RTE_EVENT_DEV_CAP_NONSEQ_MODE (1ULL << 6)
275 
284 #define RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK (1ULL << 7)
285 
290 #define RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT (1ULL << 8)
291 
296 #define RTE_EVENT_DEV_CAP_CARRY_FLOW_ID (1ULL << 9)
297 
302 #define RTE_EVENT_DEV_CAP_MAINTENANCE_FREE (1ULL << 10)
303 
312 /* Event device priority levels */
313 #define RTE_EVENT_DEV_PRIORITY_HIGHEST 0
314 
318 #define RTE_EVENT_DEV_PRIORITY_NORMAL 128
319 
323 #define RTE_EVENT_DEV_PRIORITY_LOWEST 255
324 
336 uint8_t
337 rte_event_dev_count(void);
338 
349 int
350 rte_event_dev_get_dev_id(const char *name);
351 
362 int
363 rte_event_dev_socket_id(uint8_t dev_id);
364 
369  const char *driver_name;
370  struct rte_device *dev;
405  int32_t max_num_events;
410  uint32_t event_dev_cap;
418 };
419 
435 int
436 rte_event_dev_info_get(uint8_t dev_id, struct rte_event_dev_info *dev_info);
437 
441 #define RTE_EVENT_DEV_ATTR_PORT_COUNT 0
442 
445 #define RTE_EVENT_DEV_ATTR_QUEUE_COUNT 1
446 
449 #define RTE_EVENT_DEV_ATTR_STARTED 2
450 
463 int
464 rte_event_dev_attr_get(uint8_t dev_id, uint32_t attr_id,
465  uint32_t *attr_value);
466 
467 
468 /* Event device configuration bitmap flags */
469 #define RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT (1ULL << 0)
470 
507  uint8_t nb_event_ports;
536  uint32_t event_dev_cfg;
546 };
547 
567 int
568 rte_event_dev_configure(uint8_t dev_id,
569  const struct rte_event_dev_config *dev_conf);
570 
571 /* Event queue specific APIs */
572 
573 /* Event queue configuration bitmap flags */
574 #define RTE_EVENT_QUEUE_CFG_ALL_TYPES (1ULL << 0)
575 
580 #define RTE_EVENT_QUEUE_CFG_SINGLE_LINK (1ULL << 1)
581 
588  uint32_t nb_atomic_flows;
610  uint32_t event_queue_cfg;
612  uint8_t schedule_type;
617  uint8_t priority;
625 };
626 
649 int
650 rte_event_queue_default_conf_get(uint8_t dev_id, uint8_t queue_id,
651  struct rte_event_queue_conf *queue_conf);
652 
671 int
672 rte_event_queue_setup(uint8_t dev_id, uint8_t queue_id,
673  const struct rte_event_queue_conf *queue_conf);
674 
678 #define RTE_EVENT_QUEUE_ATTR_PRIORITY 0
679 
682 #define RTE_EVENT_QUEUE_ATTR_NB_ATOMIC_FLOWS 1
683 
686 #define RTE_EVENT_QUEUE_ATTR_NB_ATOMIC_ORDER_SEQUENCES 2
687 
690 #define RTE_EVENT_QUEUE_ATTR_EVENT_QUEUE_CFG 3
691 
694 #define RTE_EVENT_QUEUE_ATTR_SCHEDULE_TYPE 4
695 
716 int
717 rte_event_queue_attr_get(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
718  uint32_t *attr_value);
719 
720 /* Event port specific APIs */
721 
722 /* Event port configuration bitmap flags */
723 #define RTE_EVENT_PORT_CFG_DISABLE_IMPL_REL (1ULL << 0)
724 
730 #define RTE_EVENT_PORT_CFG_SINGLE_LINK (1ULL << 1)
731 
735 #define RTE_EVENT_PORT_CFG_HINT_PRODUCER (1ULL << 2)
736 
745 #define RTE_EVENT_PORT_CFG_HINT_CONSUMER (1ULL << 3)
746 
756 #define RTE_EVENT_PORT_CFG_HINT_WORKER (1ULL << 4)
757 
783  uint16_t dequeue_depth;
789  uint16_t enqueue_depth;
795  uint32_t event_port_cfg;
796 };
797 
820 int
821 rte_event_port_default_conf_get(uint8_t dev_id, uint8_t port_id,
822  struct rte_event_port_conf *port_conf);
823 
844 int
845 rte_event_port_setup(uint8_t dev_id, uint8_t port_id,
846  const struct rte_event_port_conf *port_conf);
847 
851 #define RTE_EVENT_PORT_ATTR_ENQ_DEPTH 0
852 
855 #define RTE_EVENT_PORT_ATTR_DEQ_DEPTH 1
856 
859 #define RTE_EVENT_PORT_ATTR_NEW_EVENT_THRESHOLD 2
860 
863 #define RTE_EVENT_PORT_ATTR_IMPLICIT_RELEASE_DISABLE 3
864 
881 int
882 rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id, uint32_t attr_id,
883  uint32_t *attr_value);
884 
901 int
902 rte_event_dev_start(uint8_t dev_id);
903 
922 void
923 rte_event_dev_stop(uint8_t dev_id);
924 
925 typedef void (*eventdev_stop_flush_t)(uint8_t dev_id, struct rte_event event,
926  void *arg);
955 int
957  eventdev_stop_flush_t callback, void *userdata);
958 
970 int
971 rte_event_dev_close(uint8_t dev_id);
972 
977  uint16_t nb_elem;
979  uint16_t rsvd : 15;
981  uint16_t attr_valid : 1;
984  union {
985  /* Used by Rx/Tx adapter.
986  * Indicates that all the elements in this vector belong to the
987  * same port and queue pair when originating from Rx adapter,
988  * valid only when event type is ETHDEV_VECTOR or
989  * ETH_RX_ADAPTER_VECTOR.
990  * Can also be used to indicate the Tx adapter the destination
991  * port and queue of the mbufs in the vector
992  */
993  struct {
994  uint16_t port;
995  uint16_t queue;
996  };
997  };
999  uint64_t impl_opaque;
1000 
1001 /* empty structures do not have zero size in C++ leading to compilation errors
1002  * with clang about structure having different sizes in C and C++.
1003  * Since these are all zero-sized arrays, we can omit the "union" wrapper for
1004  * C++ builds, removing the warning.
1005  */
1006 #ifndef __cplusplus
1007 
1012  union {
1013 #endif
1014  struct rte_mbuf *mbufs[0];
1015  void *ptrs[0];
1016  uint64_t *u64s[0];
1017 #ifndef __cplusplus
1018  } __rte_aligned(16);
1019 #endif
1020 
1024 #ifndef __DOXYGEN__
1025 } __rte_aligned(16);
1026 #else
1027 };
1028 #endif
1029 
1030 /* Scheduler type definitions */
1031 #define RTE_SCHED_TYPE_ORDERED 0
1032 
1058 #define RTE_SCHED_TYPE_ATOMIC 1
1059 
1077 #define RTE_SCHED_TYPE_PARALLEL 2
1078 
1090 /* Event types to classify the event source */
1091 #define RTE_EVENT_TYPE_ETHDEV 0x0
1092 
1093 #define RTE_EVENT_TYPE_CRYPTODEV 0x1
1094 
1095 #define RTE_EVENT_TYPE_TIMER 0x2
1096 
1097 #define RTE_EVENT_TYPE_CPU 0x3
1098 
1101 #define RTE_EVENT_TYPE_ETH_RX_ADAPTER 0x4
1102 
1103 #define RTE_EVENT_TYPE_VECTOR 0x8
1104 
1115 #define RTE_EVENT_TYPE_ETHDEV_VECTOR \
1116  (RTE_EVENT_TYPE_VECTOR | RTE_EVENT_TYPE_ETHDEV)
1117 
1118 #define RTE_EVENT_TYPE_CPU_VECTOR (RTE_EVENT_TYPE_VECTOR | RTE_EVENT_TYPE_CPU)
1119 
1120 #define RTE_EVENT_TYPE_ETH_RX_ADAPTER_VECTOR \
1121  (RTE_EVENT_TYPE_VECTOR | RTE_EVENT_TYPE_ETH_RX_ADAPTER)
1122 
1124 #define RTE_EVENT_TYPE_MAX 0x10
1125 
1127 /* Event enqueue operations */
1128 #define RTE_EVENT_OP_NEW 0
1129 
1132 #define RTE_EVENT_OP_FORWARD 1
1133 
1140 #define RTE_EVENT_OP_RELEASE 2
1141 
1178 struct rte_event {
1180  union {
1181  uint64_t event;
1183  struct {
1184  uint32_t flow_id:20;
1191  uint32_t sub_event_type:8;
1195  uint32_t event_type:4;
1199  uint8_t op:2;
1205  uint8_t rsvd:4;
1207  uint8_t sched_type:2;
1212  uint8_t queue_id;
1219  uint8_t priority;
1229  uint8_t impl_opaque;
1236  };
1237  };
1239  union {
1240  uint64_t u64;
1242  void *event_ptr;
1244  struct rte_mbuf *mbuf;
1248  };
1249 };
1250 
1251 /* Ethdev Rx adapter capability bitmap flags */
1252 #define RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT 0x1
1253 
1256 #define RTE_EVENT_ETH_RX_ADAPTER_CAP_MULTI_EVENTQ 0x2
1257 
1260 #define RTE_EVENT_ETH_RX_ADAPTER_CAP_OVERRIDE_FLOW_ID 0x4
1261 
1267 #define RTE_EVENT_ETH_RX_ADAPTER_CAP_EVENT_VECTOR 0x8
1268 
1289 int
1290 rte_event_eth_rx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,
1291  uint32_t *caps);
1292 
1293 #define RTE_EVENT_TIMER_ADAPTER_CAP_INTERNAL_PORT (1ULL << 0)
1294 
1296 #define RTE_EVENT_TIMER_ADAPTER_CAP_PERIODIC (1ULL << 1)
1297 
1312 int
1313 rte_event_timer_adapter_caps_get(uint8_t dev_id, uint32_t *caps);
1314 
1315 /* Crypto adapter capability bitmap flag */
1316 #define RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_NEW 0x1
1317 
1323 #define RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD 0x2
1324 
1330 #define RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_QP_EV_BIND 0x4
1331 
1335 #define RTE_EVENT_CRYPTO_ADAPTER_CAP_SESSION_PRIVATE_DATA 0x8
1336 
1360 int
1361 rte_event_crypto_adapter_caps_get(uint8_t dev_id, uint8_t cdev_id,
1362  uint32_t *caps);
1363 
1364 /* Ethdev Tx adapter capability bitmap flags */
1365 #define RTE_EVENT_ETH_TX_ADAPTER_CAP_INTERNAL_PORT 0x1
1366 
1368 #define RTE_EVENT_ETH_TX_ADAPTER_CAP_EVENT_VECTOR 0x2
1369 
1390 int
1391 rte_event_eth_tx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,
1392  uint32_t *caps);
1393 
1419 int
1420 rte_event_dequeue_timeout_ticks(uint8_t dev_id, uint64_t ns,
1421  uint64_t *timeout_ticks);
1422 
1483 int
1484 rte_event_port_link(uint8_t dev_id, uint8_t port_id,
1485  const uint8_t queues[], const uint8_t priorities[],
1486  uint16_t nb_links);
1487 
1527 int
1528 rte_event_port_unlink(uint8_t dev_id, uint8_t port_id,
1529  uint8_t queues[], uint16_t nb_unlinks);
1530 
1552 int
1553 rte_event_port_unlinks_in_progress(uint8_t dev_id, uint8_t port_id);
1554 
1582 int
1583 rte_event_port_links_get(uint8_t dev_id, uint8_t port_id,
1584  uint8_t queues[], uint8_t priorities[]);
1585 
1601 int
1602 rte_event_dev_service_id_get(uint8_t dev_id, uint32_t *service_id);
1603 
1617 int
1618 rte_event_dev_dump(uint8_t dev_id, FILE *f);
1619 
1621 #define RTE_EVENT_DEV_XSTATS_NAME_SIZE 64
1622 
1627  RTE_EVENT_DEV_XSTATS_DEVICE,
1628  RTE_EVENT_DEV_XSTATS_PORT,
1629  RTE_EVENT_DEV_XSTATS_QUEUE,
1630 };
1631 
1639  char name[RTE_EVENT_DEV_XSTATS_NAME_SIZE];
1640 };
1641 
1674 int
1675 rte_event_dev_xstats_names_get(uint8_t dev_id,
1676  enum rte_event_dev_xstats_mode mode,
1677  uint8_t queue_port_id,
1678  struct rte_event_dev_xstats_name *xstats_names,
1679  unsigned int *ids,
1680  unsigned int size);
1681 
1708 int
1709 rte_event_dev_xstats_get(uint8_t dev_id,
1710  enum rte_event_dev_xstats_mode mode,
1711  uint8_t queue_port_id,
1712  const unsigned int ids[],
1713  uint64_t values[], unsigned int n);
1714 
1731 uint64_t
1732 rte_event_dev_xstats_by_name_get(uint8_t dev_id, const char *name,
1733  unsigned int *id);
1734 
1755 int
1756 rte_event_dev_xstats_reset(uint8_t dev_id,
1757  enum rte_event_dev_xstats_mode mode,
1758  int16_t queue_port_id,
1759  const uint32_t ids[],
1760  uint32_t nb_ids);
1761 
1772 int rte_event_dev_selftest(uint8_t dev_id);
1773 
1804 struct rte_mempool *
1805 rte_event_vector_pool_create(const char *name, unsigned int n,
1806  unsigned int cache_size, uint16_t nb_elem,
1807  int socket_id);
1808 
1809 #include <rte_eventdev_core.h>
1810 
1811 static __rte_always_inline uint16_t
1812 __rte_event_enqueue_burst(uint8_t dev_id, uint8_t port_id,
1813  const struct rte_event ev[], uint16_t nb_events,
1814  const event_enqueue_burst_t fn)
1815 {
1816  const struct rte_event_fp_ops *fp_ops;
1817  void *port;
1818 
1819  fp_ops = &rte_event_fp_ops[dev_id];
1820  port = fp_ops->data[port_id];
1821 #ifdef RTE_LIBRTE_EVENTDEV_DEBUG
1822  if (dev_id >= RTE_EVENT_MAX_DEVS ||
1823  port_id >= RTE_EVENT_MAX_PORTS_PER_DEV) {
1824  rte_errno = EINVAL;
1825  return 0;
1826  }
1827 
1828  if (port == NULL) {
1829  rte_errno = EINVAL;
1830  return 0;
1831  }
1832 #endif
1833  rte_eventdev_trace_enq_burst(dev_id, port_id, ev, nb_events, (void *)fn);
1834  /*
1835  * Allow zero cost non burst mode routine invocation if application
1836  * requests nb_events as const one
1837  */
1838  if (nb_events == 1)
1839  return (fp_ops->enqueue)(port, ev);
1840  else
1841  return fn(port, ev, nb_events);
1842 }
1843 
1887 static inline uint16_t
1888 rte_event_enqueue_burst(uint8_t dev_id, uint8_t port_id,
1889  const struct rte_event ev[], uint16_t nb_events)
1890 {
1891  const struct rte_event_fp_ops *fp_ops;
1892 
1893  fp_ops = &rte_event_fp_ops[dev_id];
1894  return __rte_event_enqueue_burst(dev_id, port_id, ev, nb_events,
1895  fp_ops->enqueue_burst);
1896 }
1897 
1939 static inline uint16_t
1940 rte_event_enqueue_new_burst(uint8_t dev_id, uint8_t port_id,
1941  const struct rte_event ev[], uint16_t nb_events)
1942 {
1943  const struct rte_event_fp_ops *fp_ops;
1944 
1945  fp_ops = &rte_event_fp_ops[dev_id];
1946  return __rte_event_enqueue_burst(dev_id, port_id, ev, nb_events,
1947  fp_ops->enqueue_new_burst);
1948 }
1949 
1991 static inline uint16_t
1992 rte_event_enqueue_forward_burst(uint8_t dev_id, uint8_t port_id,
1993  const struct rte_event ev[], uint16_t nb_events)
1994 {
1995  const struct rte_event_fp_ops *fp_ops;
1996 
1997  fp_ops = &rte_event_fp_ops[dev_id];
1998  return __rte_event_enqueue_burst(dev_id, port_id, ev, nb_events,
1999  fp_ops->enqueue_forward_burst);
2000 }
2001 
2068 static inline uint16_t
2069 rte_event_dequeue_burst(uint8_t dev_id, uint8_t port_id, struct rte_event ev[],
2070  uint16_t nb_events, uint64_t timeout_ticks)
2071 {
2072  const struct rte_event_fp_ops *fp_ops;
2073  void *port;
2074 
2075  fp_ops = &rte_event_fp_ops[dev_id];
2076  port = fp_ops->data[port_id];
2077 #ifdef RTE_LIBRTE_EVENTDEV_DEBUG
2078  if (dev_id >= RTE_EVENT_MAX_DEVS ||
2079  port_id >= RTE_EVENT_MAX_PORTS_PER_DEV) {
2080  rte_errno = EINVAL;
2081  return 0;
2082  }
2083 
2084  if (port == NULL) {
2085  rte_errno = EINVAL;
2086  return 0;
2087  }
2088 #endif
2089  rte_eventdev_trace_deq_burst(dev_id, port_id, ev, nb_events);
2090  /*
2091  * Allow zero cost non burst mode routine invocation if application
2092  * requests nb_events as const one
2093  */
2094  if (nb_events == 1)
2095  return (fp_ops->dequeue)(port, ev, timeout_ticks);
2096  else
2097  return (fp_ops->dequeue_burst)(port, ev, nb_events,
2098  timeout_ticks);
2099 }
2100 
2101 #define RTE_EVENT_DEV_MAINT_OP_FLUSH (1 << 0)
2102 
2143 __rte_experimental
2144 static inline int
2145 rte_event_maintain(uint8_t dev_id, uint8_t port_id, int op)
2146 {
2147  const struct rte_event_fp_ops *fp_ops;
2148  void *port;
2149 
2150  fp_ops = &rte_event_fp_ops[dev_id];
2151  port = fp_ops->data[port_id];
2152 #ifdef RTE_LIBRTE_EVENTDEV_DEBUG
2153  if (dev_id >= RTE_EVENT_MAX_DEVS ||
2154  port_id >= RTE_EVENT_MAX_PORTS_PER_DEV)
2155  return -EINVAL;
2156 
2157  if (port == NULL)
2158  return -EINVAL;
2159 
2160  if (op & (~RTE_EVENT_DEV_MAINT_OP_FLUSH))
2161  return -EINVAL;
2162 #endif
2163  rte_eventdev_trace_maintain(dev_id, port_id, op);
2164 
2165  if (fp_ops->maintain != NULL)
2166  fp_ops->maintain(port, op);
2167 
2168  return 0;
2169 }
2170 
2171 #ifdef __cplusplus
2172 }
2173 #endif
2174 
2175 #endif /* _RTE_EVENTDEV_H_ */
void rte_event_dev_stop(uint8_t dev_id)
uint32_t min_dequeue_timeout_ns
Definition: rte_eventdev.h:371
int rte_event_dequeue_timeout_ticks(uint8_t dev_id, uint64_t ns, uint64_t *timeout_ticks)
static uint16_t rte_event_enqueue_new_burst(uint8_t dev_id, uint8_t port_id, const struct rte_event ev[], uint16_t nb_events)
#define __rte_always_inline
Definition: rte_common.h:233
#define RTE_EVENT_DEV_XSTATS_NAME_SIZE
uint16_t attr_valid
Definition: rte_eventdev.h:981
uint64_t u64
int rte_event_dev_attr_get(uint8_t dev_id, uint32_t attr_id, uint32_t *attr_value)
uint32_t flow_id
int rte_event_eth_tx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id, uint32_t *caps)
int rte_event_dev_stop_flush_callback_register(uint8_t dev_id, eventdev_stop_flush_t callback, void *userdata)
uint8_t priority
struct rte_device * dev
Definition: rte_eventdev.h:370
int rte_event_queue_setup(uint8_t dev_id, uint8_t queue_id, const struct rte_event_queue_conf *queue_conf)
uint8_t max_event_port_links
Definition: rte_eventdev.h:401
int rte_event_queue_default_conf_get(uint8_t dev_id, uint8_t queue_id, struct rte_event_queue_conf *queue_conf)
int rte_event_port_default_conf_get(uint8_t dev_id, uint8_t port_id, struct rte_event_port_conf *port_conf)
uint32_t dequeue_timeout_ns
Definition: rte_eventdev.h:375
#define rte_errno
Definition: rte_errno.h:29
uint32_t event_type
uint32_t event_dev_cap
Definition: rte_eventdev.h:410
int rte_event_dev_socket_id(uint8_t dev_id)
static __rte_experimental int rte_event_maintain(uint8_t dev_id, uint8_t port_id, int op)
uint32_t max_event_port_enqueue_depth
Definition: rte_eventdev.h:396
uint64_t rte_event_dev_xstats_by_name_get(uint8_t dev_id, const char *name, unsigned int *id)
int rte_event_timer_adapter_caps_get(uint8_t dev_id, uint32_t *caps)
int rte_event_dev_info_get(uint8_t dev_id, struct rte_event_dev_info *dev_info)
uint32_t cache_size
Definition: rte_mempool.h:224
char name[RTE_MEMPOOL_NAMESIZE]
Definition: rte_mempool.h:213
uint32_t nb_atomic_order_sequences
Definition: rte_eventdev.h:596
uint32_t nb_event_port_dequeue_depth
Definition: rte_eventdev.h:522
int rte_event_port_unlinks_in_progress(uint8_t dev_id, uint8_t port_id)
void * event_ptr
int rte_event_port_link(uint8_t dev_id, uint8_t port_id, const uint8_t queues[], const uint8_t priorities[], uint16_t nb_links)
int rte_event_queue_attr_get(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id, uint32_t *attr_value)
struct rte_event_vector * vec
uint8_t max_single_link_event_port_queue_pairs
Definition: rte_eventdev.h:412
rte_event_dev_xstats_mode
int rte_event_port_links_get(uint8_t dev_id, uint8_t port_id, uint8_t queues[], uint8_t priorities[])
int rte_event_dev_selftest(uint8_t dev_id)
static uint16_t rte_event_enqueue_burst(uint8_t dev_id, uint8_t port_id, const struct rte_event ev[], uint16_t nb_events)
int rte_event_dev_start(uint8_t dev_id)
int rte_event_port_setup(uint8_t dev_id, uint8_t port_id, const struct rte_event_port_conf *port_conf)
uint8_t max_event_port_dequeue_depth
Definition: rte_eventdev.h:391
int rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id, uint32_t attr_id, uint32_t *attr_value)
uint32_t nb_event_port_enqueue_depth
Definition: rte_eventdev.h:529
const char * driver_name
Definition: rte_eventdev.h:369
uint8_t impl_opaque
uint8_t queue_id
static uint16_t rte_event_dequeue_burst(uint8_t dev_id, uint8_t port_id, struct rte_event ev[], uint16_t nb_events, uint64_t timeout_ticks)
int rte_event_dev_get_dev_id(const char *name)
uint8_t rte_event_dev_count(void)
int rte_event_dev_close(uint8_t dev_id)
int rte_event_dev_xstats_get(uint8_t dev_id, enum rte_event_dev_xstats_mode mode, uint8_t queue_port_id, const unsigned int ids[], uint64_t values[], unsigned int n)
int rte_event_dev_xstats_reset(uint8_t dev_id, enum rte_event_dev_xstats_mode mode, int16_t queue_port_id, const uint32_t ids[], uint32_t nb_ids)
#define RTE_STD_C11
Definition: rte_common.h:42
int rte_event_crypto_adapter_caps_get(uint8_t dev_id, uint8_t cdev_id, uint32_t *caps)
uint32_t dequeue_timeout_ns
Definition: rte_eventdev.h:476
int rte_event_dev_service_id_get(uint8_t dev_id, uint32_t *service_id)
static uint16_t rte_event_enqueue_forward_burst(uint8_t dev_id, uint8_t port_id, const struct rte_event ev[], uint16_t nb_events)
__extension__ struct rte_eth_link __rte_aligned(8)
#define RTE_EVENT_DEV_MAINT_OP_FLUSH
struct rte_mempool * rte_event_vector_pool_create(const char *name, unsigned int n, unsigned int cache_size, uint16_t nb_elem, int socket_id)
int rte_event_dev_dump(uint8_t dev_id, FILE *f)
uint8_t nb_single_link_event_port_queues
Definition: rte_eventdev.h:538
uint8_t rsvd
uint8_t op
int32_t new_event_threshold
Definition: rte_eventdev.h:770
uint8_t max_event_priority_levels
Definition: rte_eventdev.h:385
struct rte_mbuf * mbuf
uint32_t max_dequeue_timeout_ns
Definition: rte_eventdev.h:373
uint32_t max_event_queue_flows
Definition: rte_eventdev.h:379
int rte_event_dev_configure(uint8_t dev_id, const struct rte_event_dev_config *dev_conf)
void(* eventdev_stop_flush_t)(uint8_t dev_id, struct rte_event event, void *arg)
Definition: rte_eventdev.h:925
uint32_t sub_event_type
uint8_t sched_type
uint8_t max_event_queues
Definition: rte_eventdev.h:377
uint8_t max_event_queue_priority_levels
Definition: rte_eventdev.h:381
int rte_event_port_unlink(uint8_t dev_id, uint8_t port_id, uint8_t queues[], uint16_t nb_unlinks)
int rte_event_eth_rx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id, uint32_t *caps)
int rte_event_dev_xstats_names_get(uint8_t dev_id, enum rte_event_dev_xstats_mode mode, uint8_t queue_port_id, struct rte_event_dev_xstats_name *xstats_names, unsigned int *ids, unsigned int size)
uint32_t nb_event_queue_flows
Definition: rte_eventdev.h:517