[dpdk-dev,v2,2/4] test: callback process API changes
Checks
Commit Message
From: "Bernard.Iremonger" <Bernard.iremonger@intel.com>
Modify the following test code for rte_eth_dev_callback_process
API changes:
virtual_pmd
test_link_bonding
Signed-off-by: Bernard.Iremonger <Bernard.iremonger@intel.com>
---
test/test/test_link_bonding.c | 8 ++++++--
test/test/virtual_pmd.c | 3 ++-
2 files changed, 8 insertions(+), 3 deletions(-)
@@ -1173,15 +1173,19 @@ struct rte_fdir_conf fdir_conf = {
int test_lsc_interrupt_count;
-static void
+static int
test_bonding_lsc_event_callback(uint8_t port_id __rte_unused,
- enum rte_eth_event_type type __rte_unused, void *param __rte_unused)
+ enum rte_eth_event_type type __rte_unused,
+ void *param __rte_unused,
+ void *ret_param __rte_unused)
{
pthread_mutex_lock(&mutex);
test_lsc_interrupt_count++;
pthread_cond_signal(&cvar);
pthread_mutex_unlock(&mutex);
+
+ return 0;
}
static inline int
@@ -484,7 +484,8 @@ static void virtual_ethdev_stop(struct rte_eth_dev *eth_dev __rte_unused)
vrtl_eth_dev->data->dev_link.link_status = link_status;
- _rte_eth_dev_callback_process(vrtl_eth_dev, RTE_ETH_EVENT_INTR_LSC, NULL);
+ _rte_eth_dev_callback_process(vrtl_eth_dev, RTE_ETH_EVENT_INTR_LSC,
+ NULL, NULL);
}
int