DPDK  24.03.0
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
15 extern "C" {
16 #endif
17 
18 #include <stdint.h>
19 
20 #include <rte_compat.h>
21 
29  /* Pop the CQ tokens immediately after dequeuing. */
30  AUTO_POP,
31  /* Pop CQ tokens after (dequeue_depth - 1) events are released.
32  * Supported on load-balanced ports only.
33  */
34  DELAYED_POP,
35  /* Pop the CQ tokens during next dequeue operation. */
36  DEFERRED_POP,
37 
38  /* NUM_TOKEN_POP_MODES must be last */
39  NUM_TOKEN_POP_MODES
40 };
41 
64 __rte_experimental
65 int
66 rte_pmd_dlb2_set_token_pop_mode(uint8_t dev_id,
67  uint8_t port_id,
68  enum dlb2_token_pop_mode mode);
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif /* _RTE_PMD_DLB2_H_ */
dlb2_token_pop_mode
Definition: rte_pmd_dlb2.h:28
__rte_experimental int rte_pmd_dlb2_set_token_pop_mode(uint8_t dev_id, uint8_t port_id, enum dlb2_token_pop_mode mode)