2018-07-03 21:36:42 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright (c) 2015-2018 Atomic Rules LLC
|
2017-04-04 19:51:19 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ARK_ETHDEV_RX_H_
|
|
|
|
#define _ARK_ETHDEV_RX_H_
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include <rte_mbuf.h>
|
|
|
|
#include <rte_mempool.h>
|
2021-01-29 16:48:19 +00:00
|
|
|
#include <ethdev_driver.h>
|
2017-04-04 19:51:19 +00:00
|
|
|
|
|
|
|
int eth_ark_dev_rx_queue_setup(struct rte_eth_dev *dev,
|
|
|
|
uint16_t queue_idx,
|
|
|
|
uint16_t nb_desc,
|
|
|
|
unsigned int socket_id,
|
|
|
|
const struct rte_eth_rxconf *rx_conf,
|
|
|
|
struct rte_mempool *mp);
|
2021-10-13 13:37:00 +00:00
|
|
|
uint32_t eth_ark_dev_rx_queue_count(void *rx_queue);
|
2017-04-04 19:51:19 +00:00
|
|
|
int eth_ark_rx_stop_queue(struct rte_eth_dev *dev, uint16_t queue_id);
|
|
|
|
int eth_ark_rx_start_queue(struct rte_eth_dev *dev, uint16_t queue_id);
|
|
|
|
uint16_t eth_ark_recv_pkts_noop(void *rx_queue, struct rte_mbuf **rx_pkts,
|
|
|
|
uint16_t nb_pkts);
|
|
|
|
uint16_t eth_ark_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
|
|
|
|
uint16_t nb_pkts);
|
|
|
|
void eth_ark_dev_rx_queue_release(void *rx_queue);
|
|
|
|
void eth_rx_queue_stats_get(void *vqueue, struct rte_eth_stats *stats);
|
|
|
|
void eth_rx_queue_stats_reset(void *vqueue);
|
|
|
|
void eth_ark_rx_dump_queue(struct rte_eth_dev *dev, uint16_t queue_id,
|
|
|
|
const char *msg);
|
|
|
|
void eth_ark_udm_force_close(struct rte_eth_dev *dev);
|
|
|
|
|
|
|
|
#endif
|