net/bonding: fix bonding in 8023ad mode
authorJacek Piasecki <jacekx.piasecki@intel.com>
Tue, 8 Aug 2017 12:56:43 +0000 (14:56 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit1184582b5f80b2915d45e4015fb4e762954119e3
tree42a3aebef76c60f2712539003da166feb4a43ad4
parent0c62250ba6ea9ac48a777d70157d517c792d876b
net/bonding: fix bonding in 8023ad mode

This patch blocks possibility to set master bonding by
rte_eth_bond_mode_set() in 802.3ad mode, as the API
doesn't prevent this.

Fixes: 6d72657ce379 ("net/bonding: add other aggregator modes")
Cc: stable@dpdk.org
Signed-off-by: Jacek Piasecki <jacekx.piasecki@intel.com>
Reviewed-by: Radu Nicolau <radu.nicolau@intel.com>
drivers/net/bonding/rte_eth_bond_api.c
drivers/net/bonding/rte_eth_bond_private.h