bond: fix mac assignment to slaves
authorDeclan Doherty <declan.doherty@intel.com>
Mon, 8 Dec 2014 11:19:32 +0000 (11:19 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 11 Dec 2014 00:42:02 +0000 (01:42 +0100)
commitf2ef6f21ee2e967cef0de6af7526f8509462d049
treebdc104e1ede95cd39566f7e1b5f545d6c514cee8
parent442f3bed6a0964e938c809e8811fa0636ef13f49
bond: fix mac assignment to slaves

Adding call to mac_address_slaves_update from the lsc handler when the
first slave become active to propagate any mac changes made while
devices are inactive

Changed removing slave logic to use memmove instead of memcpy to move
data within the same array, as this was corrupting the slave array.

Adding unit test to cover failing assignment scenarios

Test report: http://dpdk.org/ml/archives/dev/2014-December/009623.html

Signed-off-by: Declan Doherty <declan.doherty@intel.com>
Acked-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Tested-by: SunX Jiajia <sunx.jiajia@intel.com>
app/test/test_link_bonding.c
app/test/virtual_pmd.c
lib/librte_pmd_bond/rte_eth_bond_pmd.c