net/i40e: fix Rx packet statistics
[dpdk.git] / drivers / net / ark / ark_ethdev_rx.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2015-2018 Atomic Rules LLC
3  */
4
5 #ifndef _ARK_ETHDEV_RX_H_
6 #define _ARK_ETHDEV_RX_H_
7
8 #include <stdint.h>
9
10 #include <rte_mbuf.h>
11 #include <rte_mempool.h>
12 #include <ethdev_driver.h>
13
14 int eth_ark_dev_rx_queue_setup(struct rte_eth_dev *dev,
15                                uint16_t queue_idx,
16                                uint16_t nb_desc,
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,
25                                 uint16_t nb_pkts);
26 uint16_t eth_ark_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
27                            uint16_t nb_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,
32                            const char *msg);
33 void eth_ark_udm_force_close(struct rte_eth_dev *dev);
34
35 #endif