net/i40e: fix setting of MAC address on i40evf
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 3 Jan 2018 13:34:18 +0000 (14:34 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commitb8a0cebddac88c784c9d2b71481ba358b401cccf
tree41655a33bd614d8725069ee4a593b9fad1dcc3ee
parentfeca6c428a5e36102bb2ef45f8ea7855e4453b0e
net/i40e: fix setting of MAC address on i40evf

When setting the MAC address, the ethdev layer copies the new mac
address in dev->data->mac_addrs[0] before calling the dev_ops.

Therefore, "is_same_ether_addr(mac_addr, dev->data->mac_addrs)" was
always true, and the MAC was never set. Remove this test to fix the
issue.

Fixes: 943c2d899a0c ("net/i40e: set VF MAC from VF")
Cc: stable@dpdk.org
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/i40e_ethdev_vf.c