1540914bcSEd Czeck /* SPDX-License-Identifier: BSD-3-Clause 2540914bcSEd Czeck * Copyright (c) 2015-2018 Atomic Rules LLC 38b154b69SEd Czeck */ 48b154b69SEd Czeck 58b154b69SEd Czeck #ifndef _ARK_ETHDEV_RX_H_ 68b154b69SEd Czeck #define _ARK_ETHDEV_RX_H_ 78b154b69SEd Czeck 88b154b69SEd Czeck #include <stdint.h> 98b154b69SEd Czeck 108b154b69SEd Czeck #include <rte_mbuf.h> 118b154b69SEd Czeck #include <rte_mempool.h> 12df96fd0dSBruce Richardson #include <ethdev_driver.h> 138b154b69SEd Czeck 148b154b69SEd Czeck int eth_ark_dev_rx_queue_setup(struct rte_eth_dev *dev, 158b154b69SEd Czeck uint16_t queue_idx, 168b154b69SEd Czeck uint16_t nb_desc, 178b154b69SEd Czeck unsigned int socket_id, 188b154b69SEd Czeck const struct rte_eth_rxconf *rx_conf, 198b154b69SEd Czeck struct rte_mempool *mp); 20*8d7d4fcdSKonstantin Ananyev uint32_t eth_ark_dev_rx_queue_count(void *rx_queue); 218b154b69SEd Czeck int eth_ark_rx_stop_queue(struct rte_eth_dev *dev, uint16_t queue_id); 228b154b69SEd Czeck int eth_ark_rx_start_queue(struct rte_eth_dev *dev, uint16_t queue_id); 238b154b69SEd Czeck uint16_t eth_ark_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, 248b154b69SEd Czeck uint16_t nb_pkts); 258b154b69SEd Czeck void eth_ark_dev_rx_queue_release(void *rx_queue); 268b154b69SEd Czeck void eth_rx_queue_stats_get(void *vqueue, struct rte_eth_stats *stats); 278b154b69SEd Czeck void eth_rx_queue_stats_reset(void *vqueue); 288b154b69SEd Czeck void eth_ark_rx_dump_queue(struct rte_eth_dev *dev, uint16_t queue_id, 298b154b69SEd Czeck const char *msg); 308b154b69SEd Czeck 318b154b69SEd Czeck #endif 32