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 7AFD7A04F3 for ; Thu, 19 Dec 2019 15:37:19 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 55F751BF87; Thu, 19 Dec 2019 15:37:19 +0100 (CET) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by dpdk.org (Postfix) with ESMTP id 5B7EF1BF87 for ; Thu, 19 Dec 2019 15:37:18 +0100 (CET) Received: by mail-wm1-f65.google.com with SMTP id 20so5736786wmj.4 for ; Thu, 19 Dec 2019 06:37:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=P/jdQUjxe4uzAB43VTFriwTa3n8E+AWYrLBimABmNJ4=; b=H8HPjOyRGcxTTADkT6Hs27uq3N62JGyuIeKE+SsdUaDHzo427AkMdMeuUNnX/FIk3o CdlN2Od8r9yZK+c54UXdjBYMxobFg0SJ+wNAeJz2UXL6O+wbKdXWJaRyPzlTqQglgjUo GvX1PdPpQHaiLzb1xKp2zxlg1H4saag68kgVA8v9Cu33BsorRurhb0cso+LNF0IEiEZ3 nQd9E4AUJNDlgQd59QlhyyQSJ9Sk2yOb7PbERhIcNiaNGHZ2LN4GSQ15tm0qQS/lGY7O pJn4MfnWlX+S8PlCkhbOuRr684BJvuC8sQIIYxlEW9fqZtV4DnlvfddEIE0PQ6m8GsS2 RBYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=P/jdQUjxe4uzAB43VTFriwTa3n8E+AWYrLBimABmNJ4=; b=DM9myk6XRQ/ZuqDrjRsXgM9iEsousbXxNDodMO5bNL/yKUKUHi7nTSfJHXAJODOsbF a3ECkfa9t6hULt13/EIm3iF8BaUAGQmalHrtuRDfWVc+uSj7EPyK3HWSfSffYsdnysnv uOO3DHHRlEO15wI5yyNAvUZUPkhjDX3knwQw4sDKjogHAVffPKpF102Zo7tD559eJ0vZ nnNbIO6KoeziVFIegKBZa7jIf5RkATiMu2ZEY+VoBDjE/BJk1arR5/NYe9TrwbTVrnOd Z55oVsK5zrurqaAUgm0cR74DYLEhQcN0FUkoWCCoSLiK0Pddt+Vbh4fZE2t41XH+EY5H rEyA== X-Gm-Message-State: APjAAAVa8uyk3wXl3EfB+S8Qvwka+n9K67zVYLh9okZ7dWLk6f18OOvO efp0K+xDHw2rbTUFYRpNzkRd5XcjFm4= X-Google-Smtp-Source: APXvYqzEsBcg83P41hk1xT8Aqn1i5oBBbqg2udStZ3jUyYlCz6ycFu/tJRlw2jqp5WFGomKNfjQiEQ== X-Received: by 2002:a1c:e289:: with SMTP id z131mr9936534wmg.18.1576766238104; Thu, 19 Dec 2019 06:37:18 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id w20sm6325421wmk.34.2019.12.19.06.37.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 06:37:17 -0800 (PST) From: luca.boccassi@gmail.com To: Krzysztof Kanas Cc: Ferruh Yigit , dpdk stable Date: Thu, 19 Dec 2019 14:33:24 +0000 Message-Id: <20191219143447.21506-57-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191219143447.21506-1-luca.boccassi@gmail.com> References: <20191219143447.21506-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'test/bonding: fix LSC related cases' has been queued to LTS release 17.11.10 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 17.11.10 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/21/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 rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From 31ac35409378d56405e3da055a640f7a9f2a66be 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 c6e3a725bd..0d5101cee0 100644 --- a/test/test/test_link_bonding.c +++ b/test/test/test_link_bonding.c @@ -1207,6 +1207,11 @@ lsc_timeout(int wait_us) ts.tv_sec = tp.tv_sec; ts.tv_nsec = tp.tv_usec * 1000; ts.tv_nsec += wait_us * 1000; + /* Normalize tv_nsec to [0,999999999L] */ + while (ts.tv_nsec > 1000000000L) { + ts.tv_nsec -= 1000000000L; + ts.tv_sec += 1; + } pthread_mutex_lock(&mutex); if (test_lsc_interrupt_count < 1) -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2019-12-19 14:32:28.586305112 +0000 +++ 0057-test-bonding-fix-LSC-related-cases.patch 2019-12-19 14:32:26.105297825 +0000 @@ -1,26 +1,27 @@ -From 88524d6b8b339278c95df3a0a894054c365daf13 Mon Sep 17 00:00:00 2001 +From 31ac35409378d56405e3da055a640f7a9f2a66be 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") -Cc: stable@dpdk.org Signed-off-by: Krzysztof Kanas Reviewed-by: Ferruh Yigit --- - app/test/test_link_bonding.c | 5 +++++ + test/test/test_link_bonding.c | 5 +++++ 1 file changed, 5 insertions(+) -diff --git a/app/test/test_link_bonding.c b/app/test/test_link_bonding.c -index a9b9d0c42a..b5ce9dbb47 100644 ---- a/app/test/test_link_bonding.c -+++ b/app/test/test_link_bonding.c -@@ -1202,6 +1202,11 @@ lsc_timeout(int wait_us) +diff --git a/test/test/test_link_bonding.c b/test/test/test_link_bonding.c +index c6e3a725bd..0d5101cee0 100644 +--- a/test/test/test_link_bonding.c ++++ b/test/test/test_link_bonding.c +@@ -1207,6 +1207,11 @@ lsc_timeout(int wait_us) ts.tv_sec = tp.tv_sec; ts.tv_nsec = tp.tv_usec * 1000; ts.tv_nsec += wait_us * 1000;