1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (c) 2015-2018 Atomic Rules LLC
5 #ifndef _ARK_ETHDEV_RX_H_
6 #define _ARK_ETHDEV_RX_H_
11 #include <rte_mempool.h>
12 #include <rte_ethdev_driver.h>
15 int eth_ark_dev_rx_queue_setup(struct rte_eth_dev *dev,
18 unsigned int socket_id,
19 const struct rte_eth_rxconf *rx_conf,
20 struct rte_mempool *mp);
21 uint32_t eth_ark_dev_rx_queue_count(struct rte_eth_dev *dev,
22 uint16_t rx_queue_id);
23 int eth_ark_rx_stop_queue(struct rte_eth_dev *dev, uint16_t queue_id);
24 int eth_ark_rx_start_queue(struct rte_eth_dev *dev, uint16_t queue_id);
25 uint16_t eth_ark_recv_pkts_noop(void *rx_queue, struct rte_mbuf **rx_pkts,
27 uint16_t eth_ark_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
29 void eth_ark_dev_rx_queue_release(void *rx_queue);
30 void eth_rx_queue_stats_get(void *vqueue, struct rte_eth_stats *stats);
31 void eth_rx_queue_stats_reset(void *vqueue);
32 void eth_ark_rx_dump_queue(struct rte_eth_dev *dev, uint16_t queue_id,
34 void eth_ark_udm_force_close(struct rte_eth_dev *dev);