From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2AFC8489EF for ; Mon, 27 Oct 2025 17:22:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 259494028B; Mon, 27 Oct 2025 17:22:24 +0100 (CET) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by mails.dpdk.org (Postfix) with ESMTP id E89EA4028B for ; Mon, 27 Oct 2025 17:22:22 +0100 (CET) Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-470ffbf2150so35132335e9.1 for ; Mon, 27 Oct 2025 09:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761582142; x=1762186942; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3LnxLZbTsDCJU1d2cAMAYCPB4vsSJjgTRS15RT6p3f8=; b=Zhpq67wpGpZ5ITLpMdBPYTkvAZpODK3VUAFZcO6DgUHWP8rkJk+PTOpjFudpnCdFbf RdWi86BWveMuI8Eu4eaG1S9ggSdjC2dY/7Ln/2Un55QMV9V33yTJ640M6GR3CzONGb8W 46nnSXVrCuSL+YA7lZp59nQWs77iTcFVAd8ytTgsSvyWdLo3TG/kkkR5Pew0gVy18d8u J/xY2WLSVWJ+R0AYqJqPc/Fe5qV5bdUdE4y5AUAao1c+47/Zssn9IgV9aJc99GXpREgo 6xQ+i1sDZwge0rpsu+09GcpGOmGOFN6qsn5npCbNgb2yidzWmOi//7pyYrJQ9ZVE1xnQ ZcDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761582142; x=1762186942; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3LnxLZbTsDCJU1d2cAMAYCPB4vsSJjgTRS15RT6p3f8=; b=nIk1bRjjLG7uqrwpWaSVQvJTGm+vWgjZom9ZBOf/LkImVPxfcFBc7OawyScf7Gk8eI of7W89rxWW4+ogKvaEtcBF006PRX+yaBoq6sX9IjfdCdexkh/HtColIpbhCett17RGbW vQ0WfXY6DSB07cbOqyfpSqegfAkjRmXyN1Csi5FifhDXzixv9q4cLDnqoziVW+Oo/iVA u6MNKoVRDB2GGMe3FX4agfE+aREAZjVHinjDB6Mxw26b9U4Yc4u9TY/iBQZSRRDoXrC8 7LaLyzUGzOW7UR/9PdHcML22zaC8mJDypaxGGbY3rjQK4CuRr3Q51T/yWtJ2JVL1FFzU TOtg== X-Gm-Message-State: AOJu0YzwsEsNq2UXWMfHnQ5ra0VHX+cfbXJO8bFiSKTXHth8YT6yhFze 8YfNEjxeLMQhuN5bGUkX6TLl/AO9KUAtle5ew8HpAaXdiAbfWy+V8UfCMv7hPQ== X-Gm-Gg: ASbGncuRGOIZcwUODYuoRBqisxGlVJCFFtTon9wNapsjP5r4z6qZPyePFjQ81cMUFCt m0VAxcBFIjoOP8zobYf6b/WjS8PaV94XKB4pVocLXwXC7OlLshuOmY9cv/MpCocmoJp9shgPb5T Lcetmg+sGrD6CcwYfWrenebhrpYA6qavUG41QbzUzEyVilNB0bdpHNP/vdM98BOgSo6vMa0vp2h HdHjRYv/XAnMQFg6NN7cz1BhYN1B+HKUIIES/PPT10CbpNtmxpulBTzb0N0unKebNUz8USqS22l UvgaaH1ZEOylnDCd1f10TUPMVRunDXUfrKPCtmitGFRlc+IKIWEMfoDWIlijh4yB9Id+cTbRaEW 99OcDQb4FE3WUXigyMGwr+IdKTqArLIY82Jfg3DG8ro9CD0DLih1IcXMjiUpj+AS8pgTAp4128O 2ah5ZTwy8vFk/cCbCE X-Google-Smtp-Source: AGHT+IGlmfUeiWj8I8otsUpD6fmIgDvTyY2+6aMKgI0KqIGfNzMSZQ/biQI3Ajabeb0qJKaudd6laA== X-Received: by 2002:a05:6000:2c07:b0:426:f9d3:2feb with SMTP id ffacd0b85a97d-429a81c9684mr29493f8f.23.1761582142427; Mon, 27 Oct 2025 09:22:22 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:6fc5:c3bc:147e:832c]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-429952b7b43sm15386031f8f.6.2025.10.27.09.22.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Oct 2025 09:22:21 -0700 (PDT) From: luca.boccassi@gmail.com To: Chengwen Feng Cc: dpdk stable Subject: patch 'test/dma: fix failure condition' has been queued to stable release 22.11.11 Date: Mon, 27 Oct 2025 16:19:20 +0000 Message-ID: <20251027162001.3710450-42-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251027162001.3710450-1-luca.boccassi@gmail.com> References: <20251027162001.3710450-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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 Hi, FYI, your patch has been queued to stable release 22.11.11 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 10/29/25. 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. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/7e238136f9b59ffbf69e41f3933319cf7e4772e5 Thanks. Luca Boccassi --- >From 7e238136f9b59ffbf69e41f3933319cf7e4772e5 Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Wed, 27 Aug 2025 09:28:28 +0800 Subject: [PATCH] test/dma: fix failure condition [ upstream commit fabb8c0b7e5bef6dfd54a8faabdee59e05d4be7e ] In the runtest() function, it will return error if the test return value is less than 0. But the 'copy' and 'error_handling' testcase may return 1 if failed because its internal use or(||) operation. This commit fix it by treating non-zero as error in runtest() function. Fixes: 1b86a66a30c2 ("test/dma: add more comprehensive copy tests") Fixes: 99d7ec4be237 ("test/dma: add failure handling tests") Signed-off-by: Chengwen Feng --- app/test/test_dmadev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c index fe62e98af8..f19349dc1c 100644 --- a/app/test/test_dmadev.c +++ b/app/test/test_dmadev.c @@ -46,7 +46,7 @@ runtest(const char *printable, int (*test_fn)(int16_t dev_id, uint16_t vchan), i printf("DMA Dev %d: Running %s Tests %s\n", dev_id, printable, check_err_stats ? " " : "(errors expected)"); for (i = 0; i < iterations; i++) { - if (test_fn(dev_id, vchan) < 0) + if (test_fn(dev_id, vchan) != 0) return -1; rte_dma_stats_get(dev_id, 0, &stats); -- 2.47.3 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-10-27 15:54:36.375306255 +0000 +++ 0042-test-dma-fix-failure-condition.patch 2025-10-27 15:54:34.811949950 +0000 @@ -1 +1 @@ -From fabb8c0b7e5bef6dfd54a8faabdee59e05d4be7e Mon Sep 17 00:00:00 2001 +From 7e238136f9b59ffbf69e41f3933319cf7e4772e5 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit fabb8c0b7e5bef6dfd54a8faabdee59e05d4be7e ] + @@ -16 +17,0 @@ -Cc: stable@dpdk.org @@ -24 +25 @@ -index e9a62a0ddf..950bb28ec9 100644 +index fe62e98af8..f19349dc1c 100644 @@ -27 +28 @@ -@@ -92,7 +92,7 @@ runtest(const void *args) +@@ -46,7 +46,7 @@ runtest(const char *printable, int (*test_fn)(int16_t dev_id, uint16_t vchan), i