From: Helin Zhang Date: Tue, 24 Jun 2014 02:02:35 +0000 (+0800) Subject: i40evf: fix link status X-Git-Tag: spdx-start~10608 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=35ccc1b3842f5113f033902c6d11c3fdc1c50a5a;p=dpdk.git 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 --- 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; }