DPDK  20.11.10
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 
27  /* Pop the CQ tokens immediately after dequeuing. */
28  AUTO_POP,
29  /* Pop CQ tokens after (dequeue_depth - 1) events are released.
30  * Supported on load-balanced ports only.
31  */
32  DELAYED_POP,
33  /* Pop the CQ tokens during next dequeue operation. */
34  DEFERRED_POP,
35 
36  /* NUM_TOKEN_POP_MODES must be last */
37  NUM_TOKEN_POP_MODES
38 };
39 
62 __rte_experimental
63 int
64 rte_pmd_dlb2_set_token_pop_mode(uint8_t dev_id,
65  uint8_t port_id,
66  enum dlb2_token_pop_mode mode);
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif /* _RTE_PMD_DLB2_H_ */
dlb2_token_pop_mode
Definition: rte_pmd_dlb2.h:26
__rte_experimental int rte_pmd_dlb2_set_token_pop_mode(uint8_t dev_id, uint8_t port_id, enum dlb2_token_pop_mode mode)