DPDK
24.11.4
Loading...
Searching...
No Matches
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
10
11
#ifndef _RTE_PMD_DLB2_H_
12
#define _RTE_PMD_DLB2_H_
13
14
#include <stdint.h>
15
16
#include <rte_compat.h>
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
26
#define RTE_PMD_DLB2_GET_QID_DEPTH(x) ((x)->rsvd & 0x3)
27
32
#define RTE_PMD_DLB2_SET_QID_DEPTH(x, v) ((x)->rsvd = ((x)->rsvd & ~0x3) | (v & 0x3))
33
38
#define RTE_PMD_DLB2_GET_QE_WEIGHT(x) (((x)->rsvd >> 2) & 0x3)
39
44
#define RTE_PMD_DLB2_SET_QE_WEIGHT(x, v) ((x)->rsvd = ((x)->rsvd & 0x3) | ((v & 0x3) << 2))
45
52
enum
rte_pmd_dlb2_token_pop_mode
{
53
/* Pop the CQ tokens immediately after dequeuing. */
54
RTE_PMD_DLB2_AUTO_POP,
55
/* Pop CQ tokens after (dequeue_depth - 1) events are released.
56
* Supported on load-balanced ports only.
57
*/
58
RTE_PMD_DLB2_DELAYED_POP,
59
/* Pop the CQ tokens during next dequeue operation. */
60
RTE_PMD_DLB2_DEFERRED_POP,
61
62
/* NUM_TOKEN_POP_MODES must be last */
63
RTE_PMD_DLB2_NUM_TOKEN_POP_MODES
64
};
65
88
89
__rte_experimental
90
int
91
rte_pmd_dlb2_set_token_pop_mode
(uint8_t dev_id,
92
uint8_t port_id,
93
enum
rte_pmd_dlb2_token_pop_mode
mode);
94
95
#ifdef __cplusplus
96
}
97
#endif
98
99
#endif
/* _RTE_PMD_DLB2_H_ */
rte_pmd_dlb2_set_token_pop_mode
__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
rte_pmd_dlb2_token_pop_mode
Definition
rte_pmd_dlb2.h:52
drivers
event
dlb2
rte_pmd_dlb2.h
Generated by
1.16.1