net/bonding: fix check slaves link properties
authorTomasz Kulasek <tomaszx.kulasek@intel.com>
Fri, 20 Oct 2017 15:49:26 +0000 (17:49 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:01 +0000 (02:33 +0200)
commit6abd94d72ab5b6787391a823d246e0288bd3ace0
tree3589a54d280a9e1b50e963f9aab9b5673e2f055d
parent5f64e6bfa1937828c9813af777a85ea57cc2e4fe
net/bonding: fix check slaves link properties

Result of slaves link properties validation is not used when new slave
is added.

This patch uses the value of link_properties_valid() to determinate if
slave can be used in the bonding. If function fails, error is returned
preventing to add slave with invalid link properties.

Coverity issue: 158661
Fixes: deba8a2f8b0b ("net/bonding: fix link properties management")
Cc: stable@dpdk.org
Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/bonding/rte_eth_bond_api.c