[dpdk-dev] [PATCH] net/iavf: fix info get
Qiming Yang
qiming.yang at intel.com
Wed Apr 17 18:08:34 CEST 2019
iavf driver reset the dev_info structure. This action will clear
the setting in core library. This patch fix that issue.
Fixes: 69dd4c3d0898 ("net/avf: enable queue and device")
Signed-off-by: Qiming Yang <qiming.yang at intel.com>
---
drivers/net/iavf/iavf_ethdev.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c
index 846e604..7825cbc 100644
--- a/drivers/net/iavf/iavf_ethdev.c
+++ b/drivers/net/iavf/iavf_ethdev.c
@@ -498,7 +498,6 @@ iavf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
{
struct iavf_info *vf = IAVF_DEV_PRIVATE_TO_VF(dev->data->dev_private);
- memset(dev_info, 0, sizeof(*dev_info));
dev_info->max_rx_queues = vf->vsi_res->num_queue_pairs;
dev_info->max_tx_queues = vf->vsi_res->num_queue_pairs;
dev_info->min_rx_bufsize = IAVF_BUF_SIZE_MIN;
--
2.9.5
More information about the dev
mailing list