1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2020 Intel Corporation
8 * @brief DLB PMD-specific functions
11 #ifndef _RTE_PMD_DLB2_H_
12 #define _RTE_PMD_DLB2_H_
22 * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
24 * Selects the token pop mode for a DLB2 port.
26 enum dlb2_token_pop_mode {
27 /* Pop the CQ tokens immediately after dequeueing. */
29 /* Pop CQ tokens after (dequeue_depth - 1) events are released.
30 * Supported on load-balanced ports only.
33 /* Pop the CQ tokens during next dequeue operation. */
36 /* NUM_TOKEN_POP_MODES must be last */
42 * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
44 * Configure the token pop mode for a DLB2 port. By default, all ports use
45 * AUTO_POP. This function must be called before calling rte_event_port_setup()
46 * for the port, but after calling rte_event_dev_configure().
49 * The identifier of the event device.
51 * The identifier of the event port.
57 * - EINVAL: Invalid dev_id, port_id, or mode
58 * - EINVAL: The DLB2 is not configured, is already running, or the port is
64 rte_pmd_dlb2_set_token_pop_mode(uint8_t dev_id,
66 enum dlb2_token_pop_mode mode);
72 #endif /* _RTE_PMD_DLB2_H_ */