From 35ccc1b3842f5113f033902c6d11c3fdc1c50a5a Mon Sep 17 00:00:00 2001 From: Helin Zhang Date: Tue, 24 Jun 2014 10:02:35 +0800 Subject: [PATCH] i40evf: fix link status Fix a bug of copying wrong size of link information in the function i40evf_get_link_status(). Signed-off-by: Helin Zhang Acked-by: Jing Chen Acked-by: Cunming Liang --- lib/librte_pmd_i40e/i40e_ethdev_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pmd_i40e/i40e_ethdev_vf.c b/lib/librte_pmd_i40e/i40e_ethdev_vf.c index 9750c6e5c6..2726bfb8b9 100644 --- a/lib/librte_pmd_i40e/i40e_ethdev_vf.c +++ b/lib/librte_pmd_i40e/i40e_ethdev_vf.c @@ -871,7 +871,7 @@ i40evf_get_link_status(struct rte_eth_dev *dev, struct rte_eth_link *link) } new_link = (struct rte_eth_link *)args.out_buffer; - (void)rte_memcpy(link, new_link, sizeof(link)); + (void)rte_memcpy(link, new_link, sizeof(*link)); return 0; } -- 2.20.1