bonding: copy entire config structure in mode 4
authorEric Kinzie <ekinzie@brocade.com>
Tue, 1 Mar 2016 17:31:59 +0000 (09:31 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 18:05:47 +0000 (19:05 +0100)
commit786c990a11e6e6592dfdee02840877070aa3a79a
treea958f3bad6701a4fdc28511025877b8bb8731f6d
parentdf3e8ad73f4c92b4eb8f49ff33271d4a09e6a04a
bonding: copy entire config structure in mode 4

Copy all needed fields from the mode8023ad_private structure in
bond_mode_8023ad_conf_get().  This help ensure that a subsequent call
to rte_eth_bond_8023ad_setup() is not passed uninitialized data that
would result in either incorrect behavior or a failed sanity check.

Fixes: 46fb43683679 ("bond: add mode 4")

Signed-off-by: Eric Kinzie <ekinzie@brocade.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Declan Doherty <declan.doherty@intel.com>
drivers/net/bonding/rte_eth_bond_8023ad.c