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 73379A04B5 for ; Tue, 3 Dec 2019 19:29:16 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6A82337AF; Tue, 3 Dec 2019 19:29:16 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 9C46D1BFB0 for ; Tue, 3 Dec 2019 19:29:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575397754; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zOLzFOtxA0HJriGb9PCXsTfJJUnjOzW61JlFUPBVDA4=; b=YXSz/lQ5m3f71wfCNV1ZtxuokltRyPalyj7nVOJSpAdAjId1llhdhMV4mYcGk6cV+UIRvh ouDr/YDLv32oKE+15Ic8HQb3zulYLNeeNdfOLFwOUoOFQ6/07Bcg+5aVTIZOnGi7ZcZvkE 1JaQXmFgf+Erb+4jx0DWeDndT4gr6q0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-337-9ITOdv-XMe6uro6keXZENw-1; Tue, 03 Dec 2019 13:29:10 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4E98DDB60; Tue, 3 Dec 2019 18:29:09 +0000 (UTC) Received: from rh.redhat.com (ovpn-117-10.ams2.redhat.com [10.36.117.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4264B5C240; Tue, 3 Dec 2019 18:29:08 +0000 (UTC) From: Kevin Traynor To: Krzysztof Kanas Cc: Ferruh Yigit , dpdk stable Date: Tue, 3 Dec 2019 18:27:05 +0000 Message-Id: <20191203182714.17297-56-ktraynor@redhat.com> In-Reply-To: <20191203182714.17297-1-ktraynor@redhat.com> References: <20191203182714.17297-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: 9ITOdv-XMe6uro6keXZENw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] patch 'test/bonding: fix LSC related cases' has been queued to LTS release 18.11.6 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to LTS release 18.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/10/19. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasi= ng (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/3cab7a4f6a9c0996cd= 51a9d22150aabfe350f5c5 Thanks. Kevin. --- >From 3cab7a4f6a9c0996cd51a9d22150aabfe350f5c5 Mon Sep 17 00:00:00 2001 From: Krzysztof Kanas Date: Fri, 23 Aug 2019 10:16:58 +0200 Subject: [PATCH] test/bonding: fix LSC related cases [ upstream commit 88524d6b8b339278c95df3a0a894054c365daf13 ] On rare situation test_link_bonding test case fail due to timespec tv_nsec overflow, which causes pthread_cond_timedwait to return EINVAL and test to fail. Fixes: 76d29903f5f5 ("bond: support link status interrupt") Signed-off-by: Krzysztof Kanas Reviewed-by: Ferruh Yigit --- test/test/test_link_bonding.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test/test_link_bonding.c b/test/test/test_link_bonding.c index 0438e76cc..11cc2c9b2 100644 --- a/test/test/test_link_bonding.c +++ b/test/test/test_link_bonding.c @@ -1160,4 +1160,9 @@ lsc_timeout(int wait_us) =09ts.tv_nsec =3D tp.tv_usec * 1000; =09ts.tv_nsec +=3D wait_us * 1000; +=09/* Normalize tv_nsec to [0,999999999L] */ +=09while (ts.tv_nsec > 1000000000L) { +=09=09ts.tv_nsec -=3D 1000000000L; +=09=09ts.tv_sec +=3D 1; +=09} =20 =09pthread_mutex_lock(&mutex); --=20 2.21.0 --- Diff of the applied patch vs upstream commit (please double-check if non-= empty: --- --- -=092019-12-03 17:29:54.972297608 +0000 +++ 0056-test-bonding-fix-LSC-related-cases.patch=092019-12-03 17:29:51.782= 749287 +0000 @@ -1 +1 @@ -From 88524d6b8b339278c95df3a0a894054c365daf13 Mon Sep 17 00:00:00 2001 +From 3cab7a4f6a9c0996cd51a9d22150aabfe350f5c5 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 88524d6b8b339278c95df3a0a894054c365daf13 ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org @@ -16 +17 @@ - app/test/test_link_bonding.c | 5 +++++ + test/test/test_link_bonding.c | 5 +++++ @@ -19,5 +20,5 @@ -diff --git a/app/test/test_link_bonding.c b/app/test/test_link_bonding.c -index a9b9d0c42..b5ce9dbb4 100644 ---- a/app/test/test_link_bonding.c -+++ b/app/test/test_link_bonding.c -@@ -1203,4 +1203,9 @@ lsc_timeout(int wait_us) +diff --git a/test/test/test_link_bonding.c b/test/test/test_link_bonding.c +index 0438e76cc..11cc2c9b2 100644 +--- a/test/test/test_link_bonding.c ++++ b/test/test/test_link_bonding.c +@@ -1160,4 +1160,9 @@ lsc_timeout(int wait_us)