Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/bonding: fix port id validity check on parsing
[ upstream commit 44cd624 ] If the port_id is equal to RTE_MAX_ETHPORTS, it should be considered invalid. Additionally, UNUSED ports are also not valid port ids to be used afterward. To simplify following the ethdev API rules, use the exposed function checking whether a port id is valid. Fixes: 2efb58c ("bond: new link bonding library") Signed-off-by: Gaetan Rivet <grive@u256.net> Acked-by: Min Hu (Connor) <humin29@huawei.com>
- Loading branch information