DPDK 23.11.6
rte_pmd_dlb2.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2020 Intel Corporation
3 */
4
11#ifndef _RTE_PMD_DLB2_H_
12#define _RTE_PMD_DLB2_H_
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18#include <stdint.h>
19
20#include <rte_compat.h>
21
26 #define RTE_PMD_DLB2_GET_QID_DEPTH(x) ((x)->rsvd & 0x3)
27
35 /* Pop the CQ tokens immediately after dequeuing. */
36 RTE_PMD_DLB2_AUTO_POP,
37 /* Pop CQ tokens after (dequeue_depth - 1) events are released.
38 * Supported on load-balanced ports only.
39 */
40 RTE_PMD_DLB2_DELAYED_POP,
41 /* Pop the CQ tokens during next dequeue operation. */
42 RTE_PMD_DLB2_DEFERRED_POP,
43
44 /* NUM_TOKEN_POP_MODES must be last */
45 RTE_PMD_DLB2_NUM_TOKEN_POP_MODES
46};
47
71__rte_experimental
72int
74 uint8_t port_id,
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif /* _RTE_PMD_DLB2_H_ */
__rte_experimental int rte_pmd_dlb2_set_token_pop_mode(uint8_t dev_id, uint8_t port_id, enum rte_pmd_dlb2_token_pop_mode mode)
rte_pmd_dlb2_token_pop_mode
Definition: rte_pmd_dlb2.h:34