net/bonding: do not early mark device as bonded
authorChas Williams <chas3@att.com>
Wed, 17 Jan 2018 16:44:44 +0000 (11:44 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jan 2018 09:04:28 +0000 (10:04 +0100)
commitb61d8340020666879def3f8f6cc2f6f763ae6bf0
tree90612140075d3ae9a634213767c7409a528a789b
parent745b72dab9a33a74f5925f2ce425fd30b21e958a
net/bonding: do not early mark device as bonded

bonding immediately marks the incoming eth device as bonded and doesn't
clear this in later error paths.  Delay marking the dev until we are
certain that we are going to add this eth device to the bond group.

Signed-off-by: Chas Williams <chas3@att.com>
Acked-by: Radu Nicolau <radu.nicolau@intel.com>
drivers/net/bonding/rte_eth_bond_api.c