net/bonding: fix slaves capacity check
authorTomasz Kulasek <tomaszx.kulasek@intel.com>
Thu, 27 Jul 2017 12:00:27 +0000 (14:00 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:48 +0000 (02:49 +0200)
commit9f78433a0ee5d1d94253a992d221ecd777e7d04d
treec2ffe5ddfefe52676ca5e613f492efd635a63e65
parent763de290cbd1dd4ed7f5319e4f5fa8a84d990e06
net/bonding: fix slaves capacity check

For i40e NIC bond_ethdev_8023ad_flow_verify fails when action queue
index indicates unavailable queue before slaves configuration.

This fix verifies flow settings for queue 0, which is always available,
and checks if slaves max queue number capacity meets requirements.

Fixes: 112891cd27e5 ("net/bonding: add dedicated HW queues for LACP control")
Cc: stable@dpdk.org
Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Reviewed-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
drivers/net/bonding/rte_eth_bond_pmd.c