blob: 586bff44a737cc48cf2cc735e22bf04994533b62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(C) 2020 Marvell International Ltd.
*/
#ifndef __INCLUDE_ETHDEV_TX_PRIV_H__
#define __INCLUDE_ETHDEV_TX_PRIV_H__
#ifdef __cplusplus
extern "C" {
#endif
struct ethdev_tx_node_ctx;
typedef struct ethdev_tx_node_ctx ethdev_tx_node_ctx_t;
enum ethdev_tx_next_nodes {
ETHDEV_TX_NEXT_PKT_DROP,
ETHDEV_TX_NEXT_MAX,
};
/**
* @internal
*
* Ethernet Tx node context structure.
*/
struct ethdev_tx_node_ctx {
uint16_t port; /**< Port identifier of the Ethernet Tx node. */
uint16_t queue; /**< Queue identifier of the Ethernet Tx node. */
};
/**
* @internal
*
* Ethernet Tx node main structure.
*/
struct ethdev_tx_node_main {
uint32_t nodes[RTE_MAX_ETHPORTS]; /**< Tx nodes for each ethdev port. */
};
/**
* @internal
*
* Get the Ethernet Tx node data.
*
* @return
* Pointer to Ethernet Tx node data.
*/
struct ethdev_tx_node_main *ethdev_tx_node_data_get(void);
/**
* @internal
*
* Get the Ethernet Tx node.
*
* @retrun
* Pointer to the Ethernet Tx node.
*/
struct rte_node_register *ethdev_tx_node_get(void);
#ifdef __cplusplus
}
#endif
#endif /* __INCLUDE_ETHDEV_TX_PRIV_H__ */
|