xref: /dpdk/drivers/net/ark/ark_ethdev_tx.h (revision a41f593f1bce27cd94eae0e85a8085c592b14b30)
1540914bcSEd Czeck /* SPDX-License-Identifier: BSD-3-Clause
2540914bcSEd Czeck  * Copyright (c) 2015-2018 Atomic Rules LLC
3c33d45afSEd Czeck  */
4c33d45afSEd Czeck 
5c33d45afSEd Czeck #ifndef _ARK_ETHDEV_TX_H_
6c33d45afSEd Czeck #define _ARK_ETHDEV_TX_H_
7c33d45afSEd Czeck 
8c33d45afSEd Czeck #include <stdint.h>
9c33d45afSEd Czeck 
10*df96fd0dSBruce Richardson #include <ethdev_driver.h>
11c33d45afSEd Czeck 
12c33d45afSEd Czeck 
13c33d45afSEd Czeck uint16_t eth_ark_xmit_pkts(void *vtxq,
14c33d45afSEd Czeck 			   struct rte_mbuf **tx_pkts,
15c33d45afSEd Czeck 			   uint16_t nb_pkts);
16c33d45afSEd Czeck int eth_ark_tx_queue_setup(struct rte_eth_dev *dev,
17c33d45afSEd Czeck 			   uint16_t queue_idx,
18c33d45afSEd Czeck 			   uint16_t nb_desc,
19c33d45afSEd Czeck 			   unsigned int socket_id,
20c33d45afSEd Czeck 			   const struct rte_eth_txconf *tx_conf);
21c33d45afSEd Czeck void eth_ark_tx_queue_release(void *vtx_queue);
22c33d45afSEd Czeck int eth_ark_tx_queue_stop(struct rte_eth_dev *dev, uint16_t queue_id);
23c33d45afSEd Czeck int eth_ark_tx_queue_start(struct rte_eth_dev *dev, uint16_t queue_id);
24c33d45afSEd Czeck void eth_tx_queue_stats_get(void *vqueue, struct rte_eth_stats *stats);
25c33d45afSEd Czeck void eth_tx_queue_stats_reset(void *vqueue);
26c33d45afSEd Czeck 
27c33d45afSEd Czeck #endif
28