]> git.droids-corp.org - dpdk.git/commitdiff
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)
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

index b3b30f6877494e25889aa4b2317f432247775586..1b7e93a0c28217c9f5dc4d54b4a3dd2700f3b61d 100644 (file)
@@ -1019,6 +1019,7 @@ bond_mode_8023ad_conf_get(struct rte_eth_dev *dev,
        conf->aggregate_wait_timeout_ms = mode4->aggregate_wait_timeout / ms_ticks;
        conf->tx_period_ms = mode4->tx_period_timeout / ms_ticks;
        conf->update_timeout_ms = mode4->update_timeout_us / 1000;
+       conf->rx_marker_period_ms = mode4->rx_marker_timeout / ms_ticks;
 }
 
 void