app/testpmd: check starting port is not in bonding
authorMin Hu (Connor) <humin29@huawei.com>
Thu, 17 Feb 2022 11:36:55 +0000 (19:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 17 Feb 2022 12:35:31 +0000 (13:35 +0100)
commitd8c079a572f3b76ca22fbfe665fb2e5e578ba881
treef6b1b464974571430123b1bec0f341e056acf012
parentb3eaaf1d08ec70646bdd69416253dfb355480492
app/testpmd: check starting port is not in bonding

In bond, start or stop slave port should be operated by bonding port.
This patch add port_is_bonding_slave in start_port function.

Fixes: 0e545d3047fe ("app/testpmd: check stopping port is not in bonding")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/testpmd.c