fbb7a43a36
This patch support query HW descriptor from hns3 device. HW descriptor is also called BD (buffer description) which is shared memory between software and hardware. Signed-off-by: Min Hu (Connor) <humin29@huawei.com> Signed-off-by: Dongdong Liu <liudongdong3@huawei.com> Acked-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
19 lines
523 B
C
19 lines
523 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(C) 2022 HiSilicon Limited
|
|
*/
|
|
|
|
#ifndef HNS3_DUMP_H
|
|
#define HNS3_DUMP_H
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <ethdev_driver.h>
|
|
|
|
int hns3_eth_dev_priv_dump(struct rte_eth_dev *dev, FILE *file);
|
|
|
|
int hns3_rx_descriptor_dump(const struct rte_eth_dev *dev, uint16_t queue_id,
|
|
uint16_t offset, uint16_t num, FILE *file);
|
|
int hns3_tx_descriptor_dump(const struct rte_eth_dev *dev, uint16_t queue_id,
|
|
uint16_t offset, uint16_t num, FILE *file);
|
|
#endif /* HNS3_DUMP_H */
|