net/iavf: fix info get
PATCH 1/1 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")
Signed-off-by Qiming Yang <[email protected]>
--- drivers/net/iavf/iavf_ethdev.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/iavf/iavf_ethdev.c +0 -1
@@ -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 ;
Signature · 1 line
2.9.5
Quoted 5 lines · Qiming Yang
iavf driver reset the
dev_infostructure. This action will clear the setting in core library. This patch fix that issue.Fixes 69dd4c3d0898 ("net/avf: enable queue and device")
"Cc: [email protected]" is supposed to be part of the commitlog.
See
http://doc.dpdk.org/guides/contributing/stable.html#what-changes-should-be-backported
Quoted 20 lines
Signed-off-by Qiming Yang <[email protected]>--- drivers/net/iavf/iavf_ethdev.c | 1 - 1 file changed, 1 deletion(-)drivers/net/iavf/iavf_ethdev.c +0
-1@@ -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;
Quoted 4 lines
--
2.9.5
Reviewed-by David Marchand <[email protected]>
Signature · 1 line
David Marchand
Ferruh Yigit
AppliedQuoted 9 lines · David Marchand
Quoted 5 lines · Qiming Yang
iavf driver reset the
dev_infostructure. This action will clear the setting in core library. This patch fix that issue.Fixes 69dd4c3d0898 ("net/avf: enable queue and device")"Cc: [email protected]" is supposed to be part of the commitlog.
Quoted 8 lines
See
http://doc.dpdk.org/guides/contributing/stable.html#what-changes-should-be-backportedQuoted 1 line
Signed-off-by Qiming Yang <[email protected]>Reviewed-by David Marchand <[email protected]>
Applied to dpdk-next-net/master, thanks.