Damjan Marion | 0e969ac | 2018-06-06 14:23:42 +0200 | [diff] [blame] | 1 | From 65a8641604212d58defd71491c900d84d662a086 Mon Sep 17 00:00:00 2001 |
| 2 | From: Damjan Marion <damarion@cisco.com> |
| 3 | Date: Wed, 6 Jun 2018 21:57:58 +0200 |
| 4 | Subject: [PATCH] i40evf: don't reset device_info data |
| 5 | |
| 6 | At this point valid data is already set by rte_eth_get_device_info. |
| 7 | device field becomes zero and consumer is not able retrieve pci data. |
| 8 | |
| 9 | Signed-off-by: Damjan Marion <damarion@cisco.com> |
| 10 | --- |
| 11 | drivers/net/i40e/i40e_ethdev_vf.c | 1 - |
| 12 | 1 file changed, 1 deletion(-) |
| 13 | |
| 14 | diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c |
| 15 | index 804e44530..86b38d202 100644 |
| 16 | --- a/drivers/net/i40e/i40e_ethdev_vf.c |
| 17 | +++ b/drivers/net/i40e/i40e_ethdev_vf.c |
| 18 | @@ -2182,7 +2182,6 @@ i40evf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) |
| 19 | { |
| 20 | struct i40e_vf *vf = I40EVF_DEV_PRIVATE_TO_VF(dev->data->dev_private); |
| 21 | |
| 22 | - memset(dev_info, 0, sizeof(*dev_info)); |
| 23 | dev_info->max_rx_queues = vf->vsi_res->num_queue_pairs; |
| 24 | dev_info->max_tx_queues = vf->vsi_res->num_queue_pairs; |
| 25 | dev_info->min_rx_bufsize = I40E_BUF_SIZE_MIN; |
| 26 | -- |
| 27 | 2.17.1 |
| 28 | |