net/i40e: fix VF add/del MAC
authorJeff Guo <jia.guo@intel.com>
Wed, 19 Jul 2017 09:01:11 +0000 (17:01 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 19 Jul 2017 13:25:43 +0000 (16:25 +0300)
commit1859934202497edc27fba6f8c5c6f6e03213430a
tree53e44d212e1bc60dbdb09e0fe23b6945af9ef445
parent9f9d2653f19673c9c5b4d2cbf3592a7256f4771d
net/i40e: fix VF add/del MAC

i40e VF close would stop the VF first, if VF already stopped this
result duplicate add/del MAC address which cause failure in executing
admin command.

Fix this by adding VF stop status check and sync up VF MAC address count
during add/del.

Fixes: d42aaf30008b ("i40e: support port hotplug")
Cc: stable@dpdk.org
Signed-off-by: Jeff Guo <jia.guo@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/i40e_ethdev.c
drivers/net/i40e/i40e_ethdev_vf.c