test/bonding: fix after hiding ethdev internal structures
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Fri, 22 Oct 2021 13:26:42 +0000 (14:26 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 22 Oct 2021 15:55:39 +0000 (17:55 +0200)
commita136b08c104afdb627b19347f15562e341ee7a1f
tree36f013d6a56c9d6499d69c4217a48530aa34c51a
parentede6356582adfb244ba4ced903c00c6f7626e53c
test/bonding: fix after hiding ethdev internal structures

link bounding auto-test internally creates emulated ethdev.
Some tests change Rx/Tx functions of this emulated device on the fly:
by directly modifying rte_eth_dev fields and without doing stop/start
for these devices.
As now ethdev uses rte_eth_fp_ops[] for fast-path functions, these
direct changes doesn't make expected effect.
Fix the problem by guarding fast-path functions changes with
rte_eth_dev_stop()/rte_eth_dev_start().

Fixes: 7a0935239b9e ("ethdev: make fast-path functions to use new flat array")

Reported-by: Lewei Yang <leweix.yang@intel.com>
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test/virtual_pmd.c