From patchwork Fri May 19 11:03:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Iremonger, Bernard" X-Patchwork-Id: 24402 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 858563255; Fri, 19 May 2017 13:03:35 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 5271D324C for ; Fri, 19 May 2017 13:03:31 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP; 19 May 2017 04:03:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,363,1491289200"; d="scan'208";a="89461074" Received: from sivswdev01.ir.intel.com (HELO localhost.localdomain) ([10.237.217.45]) by orsmga004.jf.intel.com with ESMTP; 19 May 2017 04:03:30 -0700 From: Bernard Iremonger To: dev@dpdk.org, thomas@monjalon.net Cc: "Bernard.Iremonger" Date: Fri, 19 May 2017 12:03:12 +0100 Message-Id: <1495191794-9112-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 v1 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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