net/bonding: fix possible silent failure in configuration
authorLee Daly <lee.daly@intel.com>
Fri, 16 Nov 2018 16:48:02 +0000 (16:48 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Nov 2018 17:27:55 +0000 (18:27 +0100)
commit6f4ae7f5d97a295100fa541fd59ba0b4c96a8d9c
treea5b2956488de12b65c1725ee99f7ca312a45ad6e
parent0d0dd2d9d8ff4e6a2224bc79cc8f37a635187f54
net/bonding: fix possible silent failure in configuration

This patch checks the return value of function
rte_eth_bond_8023ad_agg_selection_set() in bond_ethdev_configure
for error return value.

Fixes: 6d72657ce379 ("net/bonding: add other aggregator modes")
Cc: stable@dpdk.org
Signed-off-by: Lee Daly <lee.daly@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/bonding/rte_eth_bond_pmd.c