net/mlx5: add VLAN push/pop DR commands to glue
[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 <rte_ethdev_driver.h>
13
14
15 int eth_ark_dev_rx_queue_setup(struct rte_eth_dev *dev,
16                                uint16_t queue_idx,
17                                uint16_t nb_desc,
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,
26                                 uint16_t nb_pkts);
27 uint16_t eth_ark_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
28                            uint16_t nb_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,
33                            const char *msg);
34 void eth_ark_udm_force_close(struct rte_eth_dev *dev);
35
36 #endif