From: Qiming Yang Date: Wed, 17 Apr 2019 16:08:34 +0000 (+0800) Subject: net/iavf: fix info get X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e2403c18bf34069b8beb9af8812bb26a554aca45;p=dpdk.git net/iavf: fix info get 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") Cc: stable@dpdk.org Signed-off-by: Qiming Yang Reviewed-by: David Marchand --- diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index 846e604a6a..7825cbc85c 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;