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 <ethdev_driver.h>
14 int eth_ark_dev_rx_queue_setup(struct rte_eth_dev *dev,
17 unsigned int socket_id,
18 const struct rte_eth_rxconf *rx_conf,
19 struct rte_mempool *mp);
20 uint32_t eth_ark_dev_rx_queue_count(struct rte_eth_dev *dev,
21 uint16_t rx_queue_id);
22 int eth_ark_rx_stop_queue(struct rte_eth_dev *dev, uint16_t queue_id);
23 int eth_ark_rx_start_queue(struct rte_eth_dev *dev, uint16_t queue_id);
24 uint16_t eth_ark_recv_pkts_noop(void *rx_queue, struct rte_mbuf **rx_pkts,
26 uint16_t eth_ark_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
28 void eth_ark_dev_rx_queue_release(void *rx_queue);
29 void eth_rx_queue_stats_get(void *vqueue, struct rte_eth_stats *stats);
30 void eth_rx_queue_stats_reset(void *vqueue);
31 void eth_ark_rx_dump_queue(struct rte_eth_dev *dev, uint16_t queue_id,
33 void eth_ark_udm_force_close(struct rte_eth_dev *dev);