5 #ifndef _RTE_ETHDEV_CORE_H_ 6 #define _RTE_ETHDEV_CORE_H_ 21 struct rte_eth_dev_callback;
30 typedef uint16_t (*eth_rx_burst_t)(
void *rxq,
37 typedef uint16_t (*eth_tx_burst_t)(
void *
txq,
44 typedef uint16_t (*eth_tx_prep_t)(
void *
txq,
50 typedef uint32_t (*eth_rx_queue_count_t)(
void *rxq);
53 typedef int (*eth_rx_descriptor_status_t)(
void *rxq, uint16_t offset);
56 typedef int (*eth_tx_descriptor_status_t)(
void *
txq, uint16_t offset);
65 struct rte_ethdev_qdata {
79 struct rte_eth_fp_ops {
87 eth_rx_burst_t rx_pkt_burst;
89 eth_rx_queue_count_t rx_queue_count;
91 eth_rx_descriptor_status_t rx_descriptor_status;
93 struct rte_ethdev_qdata rxq;
94 uintptr_t reserved1[3];
103 eth_tx_burst_t tx_pkt_burst;
105 eth_tx_prep_t tx_pkt_prepare;
107 eth_tx_descriptor_status_t tx_descriptor_status;
109 struct rte_ethdev_qdata txq;
110 uintptr_t reserved2[3];
115 extern struct rte_eth_fp_ops rte_eth_fp_ops[RTE_MAX_ETHPORTS];
RTE_TAILQ_HEAD(rte_class_list, rte_class)
#define __rte_cache_aligned