net/i40e: fix setting MAC address of VF
authorBeilei Xing <beilei.xing@intel.com>
Tue, 9 Jan 2018 10:37:44 +0000 (18:37 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit8d1e8e70ff4bff2a0135aa970552f1dcc4628e43
treeb20b67456407dded0c260cad0d0cea81c2ec1d7d
parent03231aec448e0596da1cac6ad8543ff937c24eae
net/i40e: fix setting MAC address of VF

New MAC address is copied to dev->data->mac_addrs[0] before calling
setting MAC address ops. So it will fail when deleting
dev->data->mac_addrs[0]. Deleting hw->mac.addr will fix the issue.

Fixes: 943c2d899a0c ("net/i40e: set VF MAC from VF")
Cc: stable@dpdk.org
Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_ethdev_vf.c