summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBernard Iremonger <bernard.iremonger@intel.com>2017-06-15 13:29:50 +0100
committerThomas Monjalon <thomas@monjalon.net>2017-07-01 17:19:55 +0200
commitd6af1a13d7a14d062d11b37f6e31caa0f3823fe0 (patch)
tree4388046b9e072bdd04aabdbb41cc8ab8bec1181c /test
parentaae9817d5daf60d50046a981c66f2702ee88652c (diff)
downloaddpdk-d6af1a13d7a14d062d11b37f6e31caa0f3823fe0.zip
dpdk-d6af1a13d7a14d062d11b37f6e31caa0f3823fe0.tar.gz
dpdk-d6af1a13d7a14d062d11b37f6e31caa0f3823fe0.tar.xz
ethdev: add return values to callback process API
Change the rte_eth_dev_callback_process function to return int, and add a void *ret_param parameter. The new parameter is used by ixgbe and i40e instead of abusing the user data of the callback. Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Diffstat (limited to 'test')
-rw-r--r--test/test/test_link_bonding.c8
-rw-r--r--test/test/virtual_pmd.c3
2 files changed, 8 insertions, 3 deletions
diff --git a/test/test/test_link_bonding.c b/test/test/test_link_bonding.c
index 5783039..aa2a1a2 100644
--- a/test/test/test_link_bonding.c
+++ b/test/test/test_link_bonding.c
@@ -1173,15 +1173,19 @@ test_adding_slave_after_bonded_device_started(void)
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
diff --git a/test/test/virtual_pmd.c b/test/test/virtual_pmd.c
index f1ea3e1..db99894 100644
--- a/test/test/virtual_pmd.c
+++ b/test/test/virtual_pmd.c
@@ -484,7 +484,8 @@ virtual_ethdev_simulate_link_status_interrupt(uint8_t port_id,
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