CNDP 22.08.0
Loading...
Searching...
No Matches
pktdev_tx_priv.h
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (c) 2020 Marvell International Ltd.
3 */
4#ifndef __INCLUDE_PKTDEV_TX_PRIV_H__
5#define __INCLUDE_PKTDEV_TX_PRIV_H__
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11struct pktdev_tx_node_ctx;
12typedef struct pktdev_tx_node_ctx pktdev_tx_node_ctx_t;
13
14enum pktdev_tx_next_nodes {
15 PKTDEV_TX_NEXT_PKT_DROP,
16 PKTDEV_TX_NEXT_MAX,
17};
18
24struct pktdev_tx_node_ctx {
25 uint16_t port;
26 uint16_t queue;
27};
28
34struct pktdev_tx_node_main {
35 uint32_t nodes[CNE_MAX_ETHPORTS];
36};
37
46struct pktdev_tx_node_main *pktdev_tx_node_data_get(void);
47
56struct cne_node_register *pktdev_tx_node_get(void);
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif /* __INCLUDE_PKTDEV_TX_PRIV_H__ */