From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B2D3AA046B for ; Fri, 23 Aug 2019 10:17:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DE8B51BFA0; Fri, 23 Aug 2019 10:17:33 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 433DC1BF9D for ; Fri, 23 Aug 2019 10:17:32 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x7N8GNxj032674; Fri, 23 Aug 2019 01:17:30 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=+Zb66mKGICEshO+8WiRBhmCyf8JDpFpgkzpt4KepL4o=; b=CPJf5Ri+U4tc6BuL0YBh4Gz6gffcZfi+ps0UeN5veI5ThNX9b1Ogll+esmdwyoNDPwfq YSwV0j2muRiwd+SjAkH6jpfRVIlEExfxrATBvreWPGfJ/wXAAmOHQg93zNhCpTJERwg8 6vy2ouaH7feGxI1Lkja7DRNwtlhyPSj7EsMW8eLb7ShM8ruCCyMZZAF5h1PowANK3MLc DdymJZNqSCAqLt1rPRDRDoQBeVXlUBnhrdnH5ezIGxqyaRbzqer6ShBs8Gon4IZFAbQi P273aeoBCukUadmjELfiFR6MkMrKaLhVmixhB2qjvhs4kqKVteukxzt7ppywldBwUduf 1w== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2uhag27gvh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 23 Aug 2019 01:17:29 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 23 Aug 2019 01:17:28 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Fri, 23 Aug 2019 01:17:28 -0700 Received: from kk-box-0.marvell.com (unknown [10.95.130.43]) by maili.marvell.com (Postfix) with ESMTP id 0AEDA3F7043; Fri, 23 Aug 2019 01:17:26 -0700 (PDT) From: To: , Chas Williams CC: Krzysztof Kanas , Date: Fri, 23 Aug 2019 10:16:59 +0200 Message-ID: <20190823081659.27793-2-kkanas@marvell.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190823081659.27793-1-kkanas@marvell.com> References: <20190823081659.27793-1-kkanas@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-08-23_02:2019-08-21,2019-08-23 signatures=0 Subject: [dpdk-dev] [PATCH 2/2] test/bonding: fix LSC timeout unit 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: Krzysztof Kanas Fixes: 76d29903f5f5 ("bond: support link status interrupt") Cc: declan.doherty@intel.com Signed-off-by: Krzysztof Kanas --- app/test/test_link_bonding.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/test/test_link_bonding.c b/app/test/test_link_bonding.c index 1cfa77278376..76505ec12a44 100644 --- a/app/test/test_link_bonding.c +++ b/app/test/test_link_bonding.c @@ -1126,7 +1126,7 @@ test_adding_slave_after_bonded_device_started(void) } #define TEST_STATUS_INTERRUPT_SLAVE_COUNT 4 -#define TEST_LSC_WAIT_TIMEOUT_MS 500 +#define TEST_LSC_WAIT_TIMEOUT_US 500000 int test_lsc_interrupt_count; @@ -1220,7 +1220,7 @@ test_status_interrupt(void) virtual_ethdev_simulate_link_status_interrupt( test_params->slave_port_ids[3], 0); - TEST_ASSERT(lsc_timeout(TEST_LSC_WAIT_TIMEOUT_MS) == 0, + TEST_ASSERT(lsc_timeout(TEST_LSC_WAIT_TIMEOUT_US) == 0, "timed out waiting for interrupt"); TEST_ASSERT(test_lsc_interrupt_count > 0, @@ -1239,7 +1239,7 @@ test_status_interrupt(void) virtual_ethdev_simulate_link_status_interrupt( test_params->slave_port_ids[0], 1); - TEST_ASSERT(lsc_timeout(TEST_LSC_WAIT_TIMEOUT_MS) == 0, + TEST_ASSERT(lsc_timeout(TEST_LSC_WAIT_TIMEOUT_US) == 0, "timed out waiting for interrupt"); /* test that we have received another lsc interrupt */ @@ -1253,7 +1253,7 @@ test_status_interrupt(void) virtual_ethdev_simulate_link_status_interrupt( test_params->slave_port_ids[0], 1); - TEST_ASSERT(lsc_timeout(TEST_LSC_WAIT_TIMEOUT_MS) != 0, + TEST_ASSERT(lsc_timeout(TEST_LSC_WAIT_TIMEOUT_US) != 0, "received unexpected interrupt"); TEST_ASSERT_EQUAL(test_lsc_interrupt_count, 0, -- 2.21.0