DPDK 22.11.6
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
210extern "C" {
211#endif
212
213#include <rte_compat.h>
214#include <rte_common.h>
215#include <rte_errno.h>
216#include <rte_mbuf_pool_ops.h>
217#include <rte_mempool.h>
218
220
221struct rte_mbuf; /* we just use mbuf pointers; no need to include rte_mbuf.h */
222struct rte_event;
223
224/* Event device capability bitmap flags */
225#define RTE_EVENT_DEV_CAP_QUEUE_QOS (1ULL << 0)
237#define RTE_EVENT_DEV_CAP_EVENT_QOS (1ULL << 1)
244#define RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED (1ULL << 2)
253#define RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES (1ULL << 3)
260#define RTE_EVENT_DEV_CAP_BURST_MODE (1ULL << 4)
268#define RTE_EVENT_DEV_CAP_IMPLICIT_RELEASE_DISABLE (1ULL << 5)
279#define RTE_EVENT_DEV_CAP_NONSEQ_MODE (1ULL << 6)
289#define RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK (1ULL << 7)
295#define RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT (1ULL << 8)
301#define RTE_EVENT_DEV_CAP_CARRY_FLOW_ID (1ULL << 9)
307#define RTE_EVENT_DEV_CAP_MAINTENANCE_FREE (1ULL << 10)
317#define RTE_EVENT_DEV_CAP_RUNTIME_QUEUE_ATTR (1ULL << 11)
324/* Event device priority levels */
325#define RTE_EVENT_DEV_PRIORITY_HIGHEST 0
330#define RTE_EVENT_DEV_PRIORITY_NORMAL 128
335#define RTE_EVENT_DEV_PRIORITY_LOWEST 255
341/* Event queue scheduling weights */
342#define RTE_EVENT_QUEUE_WEIGHT_HIGHEST 255
346#define RTE_EVENT_QUEUE_WEIGHT_LOWEST 0
351/* Event queue scheduling affinity */
352#define RTE_EVENT_QUEUE_AFFINITY_HIGHEST 255
356#define RTE_EVENT_QUEUE_AFFINITY_LOWEST 0
368uint8_t
370
381int
382rte_event_dev_get_dev_id(const char *name);
383
394int
396
401 const char *driver_name;
402 struct rte_device *dev;
450};
451
467int
468rte_event_dev_info_get(uint8_t dev_id, struct rte_event_dev_info *dev_info);
469
473#define RTE_EVENT_DEV_ATTR_PORT_COUNT 0
477#define RTE_EVENT_DEV_ATTR_QUEUE_COUNT 1
481#define RTE_EVENT_DEV_ATTR_STARTED 2
482
495int
496rte_event_dev_attr_get(uint8_t dev_id, uint32_t attr_id,
497 uint32_t *attr_value);
498
499
500/* Event device configuration bitmap flags */
501#define RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT (1ULL << 0)
578};
579
599int
601 const struct rte_event_dev_config *dev_conf);
602
603/* Event queue specific APIs */
604
605/* Event queue configuration bitmap flags */
606#define RTE_EVENT_QUEUE_CFG_ALL_TYPES (1ULL << 0)
612#define RTE_EVENT_QUEUE_CFG_SINGLE_LINK (1ULL << 1)
649 uint8_t priority;
657 uint8_t weight;
665 uint8_t affinity;
673};
674
697int
698rte_event_queue_default_conf_get(uint8_t dev_id, uint8_t queue_id,
699 struct rte_event_queue_conf *queue_conf);
700
719int
720rte_event_queue_setup(uint8_t dev_id, uint8_t queue_id,
721 const struct rte_event_queue_conf *queue_conf);
722
726#define RTE_EVENT_QUEUE_ATTR_PRIORITY 0
730#define RTE_EVENT_QUEUE_ATTR_NB_ATOMIC_FLOWS 1
734#define RTE_EVENT_QUEUE_ATTR_NB_ATOMIC_ORDER_SEQUENCES 2
738#define RTE_EVENT_QUEUE_ATTR_EVENT_QUEUE_CFG 3
742#define RTE_EVENT_QUEUE_ATTR_SCHEDULE_TYPE 4
746#define RTE_EVENT_QUEUE_ATTR_WEIGHT 5
750#define RTE_EVENT_QUEUE_ATTR_AFFINITY 6
751
772int
773rte_event_queue_attr_get(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
774 uint32_t *attr_value);
775
794__rte_experimental
795int
796rte_event_queue_attr_set(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
797 uint64_t attr_value);
798
799/* Event port specific APIs */
800
801/* Event port configuration bitmap flags */
802#define RTE_EVENT_PORT_CFG_DISABLE_IMPL_REL (1ULL << 0)
809#define RTE_EVENT_PORT_CFG_SINGLE_LINK (1ULL << 1)
814#define RTE_EVENT_PORT_CFG_HINT_PRODUCER (1ULL << 2)
824#define RTE_EVENT_PORT_CFG_HINT_CONSUMER (1ULL << 3)
835#define RTE_EVENT_PORT_CFG_HINT_WORKER (1ULL << 4)
874 uint32_t event_port_cfg;
875};
876
899int
900rte_event_port_default_conf_get(uint8_t dev_id, uint8_t port_id,
901 struct rte_event_port_conf *port_conf);
902
923int
924rte_event_port_setup(uint8_t dev_id, uint8_t port_id,
925 const struct rte_event_port_conf *port_conf);
926
927typedef void (*rte_eventdev_port_flush_t)(uint8_t dev_id,
928 struct rte_event event, void *arg);
958__rte_experimental
959void
960rte_event_port_quiesce(uint8_t dev_id, uint8_t port_id,
961 rte_eventdev_port_flush_t release_cb, void *args);
962
966#define RTE_EVENT_PORT_ATTR_ENQ_DEPTH 0
970#define RTE_EVENT_PORT_ATTR_DEQ_DEPTH 1
974#define RTE_EVENT_PORT_ATTR_NEW_EVENT_THRESHOLD 2
978#define RTE_EVENT_PORT_ATTR_IMPLICIT_RELEASE_DISABLE 3
979
996int
997rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id, uint32_t attr_id,
998 uint32_t *attr_value);
999
1016int
1017rte_event_dev_start(uint8_t dev_id);
1018
1037void
1038rte_event_dev_stop(uint8_t dev_id);
1039
1040typedef void (*rte_eventdev_stop_flush_t)(uint8_t dev_id,
1041 struct rte_event event, void *arg);
1071 rte_eventdev_stop_flush_t callback, void *userdata);
1072
1084int
1085rte_event_dev_close(uint8_t dev_id);
1086
1091 uint16_t nb_elem;
1093 uint16_t elem_offset : 12;
1095 uint16_t rsvd : 3;
1097 uint16_t attr_valid : 1;
1100 union {
1101 /* Used by Rx/Tx adapter.
1102 * Indicates that all the elements in this vector belong to the
1103 * same port and queue pair when originating from Rx adapter,
1104 * valid only when event type is ETHDEV_VECTOR or
1105 * ETH_RX_ADAPTER_VECTOR.
1106 * Can also be used to indicate the Tx adapter the destination
1107 * port and queue of the mbufs in the vector
1108 */
1109 struct {
1110 uint16_t port;
1111 uint16_t queue;
1112 };
1113 };
1115 uint64_t impl_opaque;
1116
1117/* empty structures do not have zero size in C++ leading to compilation errors
1118 * with clang about structure having different sizes in C and C++.
1119 * Since these are all zero-sized arrays, we can omit the "union" wrapper for
1120 * C++ builds, removing the warning.
1121 */
1122#ifndef __cplusplus
1128 union {
1129#endif
1130 struct rte_mbuf *mbufs[0];
1131 void *ptrs[0];
1132 uint64_t u64s[0];
1133#ifndef __cplusplus
1134 } __rte_aligned(16);
1135#endif
1140#ifndef __DOXYGEN__
1141} __rte_aligned(16);
1142#else
1143};
1144#endif
1145
1146/* Scheduler type definitions */
1147#define RTE_SCHED_TYPE_ORDERED 0
1174#define RTE_SCHED_TYPE_ATOMIC 1
1193#define RTE_SCHED_TYPE_PARALLEL 2
1206/* Event types to classify the event source */
1207#define RTE_EVENT_TYPE_ETHDEV 0x0
1209#define RTE_EVENT_TYPE_CRYPTODEV 0x1
1211#define RTE_EVENT_TYPE_TIMER 0x2
1213#define RTE_EVENT_TYPE_CPU 0x3
1217#define RTE_EVENT_TYPE_ETH_RX_ADAPTER 0x4
1219#define RTE_EVENT_TYPE_VECTOR 0x8
1231#define RTE_EVENT_TYPE_ETHDEV_VECTOR \
1232 (RTE_EVENT_TYPE_VECTOR | RTE_EVENT_TYPE_ETHDEV)
1234#define RTE_EVENT_TYPE_CPU_VECTOR (RTE_EVENT_TYPE_VECTOR | RTE_EVENT_TYPE_CPU)
1236#define RTE_EVENT_TYPE_ETH_RX_ADAPTER_VECTOR \
1237 (RTE_EVENT_TYPE_VECTOR | RTE_EVENT_TYPE_ETH_RX_ADAPTER)
1239#define RTE_EVENT_TYPE_CRYPTODEV_VECTOR \
1240 (RTE_EVENT_TYPE_VECTOR | RTE_EVENT_TYPE_CRYPTODEV)
1243#define RTE_EVENT_TYPE_MAX 0x10
1246/* Event enqueue operations */
1247#define RTE_EVENT_OP_NEW 0
1251#define RTE_EVENT_OP_FORWARD 1
1259#define RTE_EVENT_OP_RELEASE 2
1299 union {
1300 uint64_t event;
1302 struct {
1303 uint32_t flow_id:20;
1310 uint32_t sub_event_type:8;
1314 uint32_t event_type:4;
1318 uint8_t op:2;
1324 uint8_t rsvd:4;
1326 uint8_t sched_type:2;
1331 uint8_t queue_id;
1338 uint8_t priority;
1355 };
1356 };
1358 union {
1359 uint64_t u64;
1367 };
1368};
1369
1370/* Ethdev Rx adapter capability bitmap flags */
1371#define RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT 0x1
1375#define RTE_EVENT_ETH_RX_ADAPTER_CAP_MULTI_EVENTQ 0x2
1379#define RTE_EVENT_ETH_RX_ADAPTER_CAP_OVERRIDE_FLOW_ID 0x4
1386#define RTE_EVENT_ETH_RX_ADAPTER_CAP_EVENT_VECTOR 0x8
1408int
1409rte_event_eth_rx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,
1410 uint32_t *caps);
1411
1412#define RTE_EVENT_TIMER_ADAPTER_CAP_INTERNAL_PORT (1ULL << 0)
1415#define RTE_EVENT_TIMER_ADAPTER_CAP_PERIODIC (1ULL << 1)
1431int
1432rte_event_timer_adapter_caps_get(uint8_t dev_id, uint32_t *caps);
1433
1434/* Crypto adapter capability bitmap flag */
1435#define RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_NEW 0x1
1442#define RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD 0x2
1449#define RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_QP_EV_BIND 0x4
1454#define RTE_EVENT_CRYPTO_ADAPTER_CAP_SESSION_PRIVATE_DATA 0x8
1459#define RTE_EVENT_CRYPTO_ADAPTER_CAP_EVENT_VECTOR 0x10
1484int
1485rte_event_crypto_adapter_caps_get(uint8_t dev_id, uint8_t cdev_id,
1486 uint32_t *caps);
1487
1488/* Ethdev Tx adapter capability bitmap flags */
1489#define RTE_EVENT_ETH_TX_ADAPTER_CAP_INTERNAL_PORT 0x1
1492#define RTE_EVENT_ETH_TX_ADAPTER_CAP_EVENT_VECTOR 0x2
1514int
1515rte_event_eth_tx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id,
1516 uint32_t *caps);
1517
1543int
1544rte_event_dequeue_timeout_ticks(uint8_t dev_id, uint64_t ns,
1545 uint64_t *timeout_ticks);
1546
1607int
1608rte_event_port_link(uint8_t dev_id, uint8_t port_id,
1609 const uint8_t queues[], const uint8_t priorities[],
1610 uint16_t nb_links);
1611
1651int
1652rte_event_port_unlink(uint8_t dev_id, uint8_t port_id,
1653 uint8_t queues[], uint16_t nb_unlinks);
1654
1676int
1677rte_event_port_unlinks_in_progress(uint8_t dev_id, uint8_t port_id);
1678
1706int
1707rte_event_port_links_get(uint8_t dev_id, uint8_t port_id,
1708 uint8_t queues[], uint8_t priorities[]);
1709
1725int
1726rte_event_dev_service_id_get(uint8_t dev_id, uint32_t *service_id);
1727
1741int
1742rte_event_dev_dump(uint8_t dev_id, FILE *f);
1743
1745#define RTE_EVENT_DEV_XSTATS_NAME_SIZE 64
1746
1751 RTE_EVENT_DEV_XSTATS_DEVICE,
1752 RTE_EVENT_DEV_XSTATS_PORT,
1753 RTE_EVENT_DEV_XSTATS_QUEUE,
1754};
1755
1764};
1765
1798int
1800 enum rte_event_dev_xstats_mode mode,
1801 uint8_t queue_port_id,
1802 struct rte_event_dev_xstats_name *xstats_names,
1803 uint64_t *ids,
1804 unsigned int size);
1805
1832int
1834 enum rte_event_dev_xstats_mode mode,
1835 uint8_t queue_port_id,
1836 const uint64_t ids[],
1837 uint64_t values[], unsigned int n);
1838
1855uint64_t
1856rte_event_dev_xstats_by_name_get(uint8_t dev_id, const char *name,
1857 uint64_t *id);
1858
1879int
1881 enum rte_event_dev_xstats_mode mode,
1882 int16_t queue_port_id,
1883 const uint64_t ids[],
1884 uint32_t nb_ids);
1885
1896int rte_event_dev_selftest(uint8_t dev_id);
1897
1928struct rte_mempool *
1929rte_event_vector_pool_create(const char *name, unsigned int n,
1930 unsigned int cache_size, uint16_t nb_elem,
1931 int socket_id);
1932
1933#include <rte_eventdev_core.h>
1934
1935static __rte_always_inline uint16_t
1936__rte_event_enqueue_burst(uint8_t dev_id, uint8_t port_id,
1937 const struct rte_event ev[], uint16_t nb_events,
1938 const event_enqueue_burst_t fn)
1939{
1940 const struct rte_event_fp_ops *fp_ops;
1941 void *port;
1942
1943 fp_ops = &rte_event_fp_ops[dev_id];
1944 port = fp_ops->data[port_id];
1945#ifdef RTE_LIBRTE_EVENTDEV_DEBUG
1946 if (dev_id >= RTE_EVENT_MAX_DEVS ||
1947 port_id >= RTE_EVENT_MAX_PORTS_PER_DEV) {
1948 rte_errno = EINVAL;
1949 return 0;
1950 }
1951
1952 if (port == NULL) {
1953 rte_errno = EINVAL;
1954 return 0;
1955 }
1956#endif
1957 rte_eventdev_trace_enq_burst(dev_id, port_id, ev, nb_events, (void *)fn);
1958 /*
1959 * Allow zero cost non burst mode routine invocation if application
1960 * requests nb_events as const one
1961 */
1962 if (nb_events == 1)
1963 return (fp_ops->enqueue)(port, ev);
1964 else
1965 return fn(port, ev, nb_events);
1966}
1967
2011static inline uint16_t
2012rte_event_enqueue_burst(uint8_t dev_id, uint8_t port_id,
2013 const struct rte_event ev[], uint16_t nb_events)
2014{
2015 const struct rte_event_fp_ops *fp_ops;
2016
2017 fp_ops = &rte_event_fp_ops[dev_id];
2018 return __rte_event_enqueue_burst(dev_id, port_id, ev, nb_events,
2019 fp_ops->enqueue_burst);
2020}
2021
2063static inline uint16_t
2064rte_event_enqueue_new_burst(uint8_t dev_id, uint8_t port_id,
2065 const struct rte_event ev[], uint16_t nb_events)
2066{
2067 const struct rte_event_fp_ops *fp_ops;
2068
2069 fp_ops = &rte_event_fp_ops[dev_id];
2070 return __rte_event_enqueue_burst(dev_id, port_id, ev, nb_events,
2071 fp_ops->enqueue_new_burst);
2072}
2073
2115static inline uint16_t
2116rte_event_enqueue_forward_burst(uint8_t dev_id, uint8_t port_id,
2117 const struct rte_event ev[], uint16_t nb_events)
2118{
2119 const struct rte_event_fp_ops *fp_ops;
2120
2121 fp_ops = &rte_event_fp_ops[dev_id];
2122 return __rte_event_enqueue_burst(dev_id, port_id, ev, nb_events,
2123 fp_ops->enqueue_forward_burst);
2124}
2125
2192static inline uint16_t
2193rte_event_dequeue_burst(uint8_t dev_id, uint8_t port_id, struct rte_event ev[],
2194 uint16_t nb_events, uint64_t timeout_ticks)
2195{
2196 const struct rte_event_fp_ops *fp_ops;
2197 void *port;
2198
2199 fp_ops = &rte_event_fp_ops[dev_id];
2200 port = fp_ops->data[port_id];
2201#ifdef RTE_LIBRTE_EVENTDEV_DEBUG
2202 if (dev_id >= RTE_EVENT_MAX_DEVS ||
2203 port_id >= RTE_EVENT_MAX_PORTS_PER_DEV) {
2204 rte_errno = EINVAL;
2205 return 0;
2206 }
2207
2208 if (port == NULL) {
2209 rte_errno = EINVAL;
2210 return 0;
2211 }
2212#endif
2213 rte_eventdev_trace_deq_burst(dev_id, port_id, ev, nb_events);
2214 /*
2215 * Allow zero cost non burst mode routine invocation if application
2216 * requests nb_events as const one
2217 */
2218 if (nb_events == 1)
2219 return (fp_ops->dequeue)(port, ev, timeout_ticks);
2220 else
2221 return (fp_ops->dequeue_burst)(port, ev, nb_events,
2222 timeout_ticks);
2223}
2224
2225#define RTE_EVENT_DEV_MAINT_OP_FLUSH (1 << 0)
2267__rte_experimental
2268static inline int
2269rte_event_maintain(uint8_t dev_id, uint8_t port_id, int op)
2270{
2271 const struct rte_event_fp_ops *fp_ops;
2272 void *port;
2273
2274 fp_ops = &rte_event_fp_ops[dev_id];
2275 port = fp_ops->data[port_id];
2276#ifdef RTE_LIBRTE_EVENTDEV_DEBUG
2277 if (dev_id >= RTE_EVENT_MAX_DEVS ||
2278 port_id >= RTE_EVENT_MAX_PORTS_PER_DEV)
2279 return -EINVAL;
2280
2281 if (port == NULL)
2282 return -EINVAL;
2283
2284 if (op & (~RTE_EVENT_DEV_MAINT_OP_FLUSH))
2285 return -EINVAL;
2286#endif
2287 rte_eventdev_trace_maintain(dev_id, port_id, op);
2288
2289 if (fp_ops->maintain != NULL)
2290 fp_ops->maintain(port, op);
2291
2292 return 0;
2293}
2294
2295#ifdef __cplusplus
2296}
2297#endif
2298
2299#endif /* _RTE_EVENTDEV_H_ */
#define RTE_STD_C11
Definition: rte_common.h:39
#define __rte_always_inline
Definition: rte_common.h:255
#define rte_errno
Definition: rte_errno.h:29
__extension__ struct rte_eth_link __rte_aligned(8)
int rte_event_port_links_get(uint8_t dev_id, uint8_t port_id, uint8_t queues[], uint8_t priorities[])
int rte_event_port_unlinks_in_progress(uint8_t dev_id, uint8_t port_id)
void(* rte_eventdev_port_flush_t)(uint8_t dev_id, struct rte_event event, void *arg)
Definition: rte_eventdev.h:927
int rte_event_dequeue_timeout_ticks(uint8_t dev_id, uint64_t ns, uint64_t *timeout_ticks)
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)
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)
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_service_id_get(uint8_t dev_id, uint32_t *service_id)
rte_event_dev_xstats_mode
int rte_event_eth_rx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id, uint32_t *caps)
int rte_event_queue_setup(uint8_t dev_id, uint8_t queue_id, const struct rte_event_queue_conf *queue_conf)
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_dev_selftest(uint8_t dev_id)
int rte_event_dev_info_get(uint8_t dev_id, struct rte_event_dev_info *dev_info)
int rte_event_dev_stop_flush_callback_register(uint8_t dev_id, rte_eventdev_stop_flush_t callback, void *userdata)
void rte_event_dev_stop(uint8_t dev_id)
uint8_t rte_event_dev_count(void)
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_crypto_adapter_caps_get(uint8_t dev_id, uint8_t cdev_id, uint32_t *caps)
int rte_event_dev_xstats_reset(uint8_t dev_id, enum rte_event_dev_xstats_mode mode, int16_t queue_port_id, const uint64_t ids[], uint32_t nb_ids)
int rte_event_dev_dump(uint8_t dev_id, FILE *f)
int rte_event_timer_adapter_caps_get(uint8_t dev_id, uint32_t *caps)
int rte_event_dev_attr_get(uint8_t dev_id, uint32_t attr_id, uint32_t *attr_value)
int rte_event_dev_get_dev_id(const char *name)
uint64_t rte_event_dev_xstats_by_name_get(uint8_t dev_id, const char *name, uint64_t *id)
int rte_event_dev_xstats_get(uint8_t dev_id, enum rte_event_dev_xstats_mode mode, uint8_t queue_port_id, const uint64_t ids[], uint64_t values[], unsigned int n)
#define RTE_EVENT_DEV_MAINT_OP_FLUSH
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)
void(* rte_eventdev_stop_flush_t)(uint8_t dev_id, struct rte_event event, void *arg)
int rte_event_queue_attr_get(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id, uint32_t *attr_value)
int rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id, uint32_t attr_id, uint32_t *attr_value)
int rte_event_dev_start(uint8_t dev_id)
int rte_event_port_default_conf_get(uint8_t dev_id, uint8_t port_id, struct rte_event_port_conf *port_conf)
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, uint64_t *ids, unsigned int size)
int rte_event_port_setup(uint8_t dev_id, uint8_t port_id, const struct rte_event_port_conf *port_conf)
__rte_experimental void rte_event_port_quiesce(uint8_t dev_id, uint8_t port_id, rte_eventdev_port_flush_t release_cb, void *args)
int rte_event_eth_tx_adapter_caps_get(uint8_t dev_id, uint16_t eth_port_id, uint32_t *caps)
int rte_event_port_unlink(uint8_t dev_id, uint8_t port_id, uint8_t queues[], uint16_t nb_unlinks)
#define RTE_EVENT_DEV_XSTATS_NAME_SIZE
int rte_event_dev_socket_id(uint8_t dev_id)
__rte_experimental int rte_event_queue_attr_set(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id, uint64_t attr_value)
int rte_event_dev_configure(uint8_t dev_id, const struct rte_event_dev_config *dev_conf)
static __rte_experimental int rte_event_maintain(uint8_t dev_id, uint8_t port_id, int op)
int rte_event_dev_close(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)
uint32_t dequeue_timeout_ns
Definition: rte_eventdev.h:508
uint8_t nb_single_link_event_port_queues
Definition: rte_eventdev.h:570
uint32_t nb_event_port_enqueue_depth
Definition: rte_eventdev.h:561
uint32_t nb_event_queue_flows
Definition: rte_eventdev.h:549
uint32_t nb_event_port_dequeue_depth
Definition: rte_eventdev.h:554
uint8_t max_event_port_links
Definition: rte_eventdev.h:433
uint32_t max_event_port_enqueue_depth
Definition: rte_eventdev.h:428
uint32_t dequeue_timeout_ns
Definition: rte_eventdev.h:407
uint32_t min_dequeue_timeout_ns
Definition: rte_eventdev.h:403
uint8_t max_event_queues
Definition: rte_eventdev.h:409
uint32_t max_event_queue_flows
Definition: rte_eventdev.h:411
uint8_t max_event_port_dequeue_depth
Definition: rte_eventdev.h:423
uint8_t max_event_queue_priority_levels
Definition: rte_eventdev.h:413
uint8_t max_event_priority_levels
Definition: rte_eventdev.h:417
uint32_t event_dev_cap
Definition: rte_eventdev.h:442
const char * driver_name
Definition: rte_eventdev.h:401
uint32_t max_dequeue_timeout_ns
Definition: rte_eventdev.h:405
struct rte_device * dev
Definition: rte_eventdev.h:402
uint8_t max_single_link_event_port_queue_pairs
Definition: rte_eventdev.h:444
int32_t new_event_threshold
Definition: rte_eventdev.h:849
uint32_t nb_atomic_order_sequences
Definition: rte_eventdev.h:628
uint16_t elem_offset
uint8_t priority
uint32_t flow_id
uint8_t rsvd
uint8_t op
uint32_t event_type
struct rte_mbuf * mbuf
uint8_t queue_id
uint8_t sched_type
uint64_t u64
struct rte_event_vector * vec
uint8_t impl_opaque
uint32_t sub_event_type
void * event_ptr
char name[RTE_MEMPOOL_NAMESIZE]
Definition: rte_mempool.h:220
uint32_t cache_size
Definition: rte_mempool.h:231