From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 67A7B2C58 for ; Mon, 12 Jun 2017 17:18:40 +0200 (CEST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jun 2017 08:18:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,334,1493708400"; d="scan'208";a="112138756" Received: from sivswdev01.ir.intel.com (HELO localhost.localdomain) ([10.237.217.45]) by orsmga005.jf.intel.com with ESMTP; 12 Jun 2017 08:18:18 -0700 From: Bernard Iremonger To: dev@dpdk.org, thomas@monjalon.net Cc: "Bernard.Iremonger" Date: Mon, 12 Jun 2017 16:18:09 +0100 Message-Id: <1497280691-18641-3-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1495191794-9112-1-git-send-email-bernard.iremonger@intel.com> References: <1495191794-9112-1-git-send-email-bernard.iremonger@intel.com> Subject: [dpdk-dev] [PATCH v2 2/4] test: callback process API changes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2017 15:18:40 -0000 From: "Bernard.Iremonger" Modify the following test code for rte_eth_dev_callback_process API changes: virtual_pmd test_link_bonding Signed-off-by: Bernard.Iremonger --- test/test/test_link_bonding.c | 8 ++++++-- test/test/virtual_pmd.c | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/test/test/test_link_bonding.c b/test/test/test_link_bonding.c index 52d2d05..0c67f04 100644 --- a/test/test/test_link_bonding.c +++ b/test/test/test_link_bonding.c @@ -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 diff --git a/test/test/virtual_pmd.c b/test/test/virtual_pmd.c index e9dd8ac..78ed7c0 100644 --- a/test/test/virtual_pmd.c +++ b/test/test/virtual_pmd.c @@ -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 -- 1.9.1