Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1424492ybl; Thu, 22 Aug 2019 14:26:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvhkm8fQqmhg2k6YrnoYnvIRUrMPg/knJMQHcSjAP2RkxseraoK7FIPPUSjCfy0oH/j72h X-Received: by 2002:a63:b64:: with SMTP id a36mr1078457pgl.215.1566509200703; Thu, 22 Aug 2019 14:26:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566509200; cv=none; d=google.com; s=arc-20160816; b=E1NZ+yT1WL9WykJ08CcA4JXlUS1qWhA7aSwxiNPSuCyuAE6LQdTK1YHWzkD9OjdrCi 5KY8J7swNMo3ZWJDF0ygBnfMZscW+kbSdIg8/Y/FoozDl9SmyZs8AEhWi9OB1rWuoaYx U28UxYS3mZ5ljNTXpYk59COn1QUgdxc5blzjHkfRVzVeobGmMZkOG79ZbuYXR0WvDbAk oG2BnLPq02pL9Eb0bjKoaqTiFj0ed6aAr/qUr2nWOH9K5l7s6CfnGkN2qyAYw1e1YWPx XIR+6QvFcboJcggrXYg541M2E0hFd7Th2OlLEENRMEaNyy1TxIt3SL8PoHfTaTSAYtkK 7P0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HcHn7cHvFWQkgD4tKbeTAWxMu1HGlZ/prOISuiZnyb4=; b=ulSvyauLZ1TZRZNjmZvezqjhm0jUa3dSLnBiySvD8NWiw5JTNbiVx0foQjySbdNwR9 QzDxY2/jxfH3CPX5Kbxxc8wqT4ZvKClmPavBy0Ppj+ZzYBjOQ5+2XzUlkvfCmW6+hNdh e7ClX1n0LzRsRoQonzrg4voMu/OHK9nvVjmsm78M9Q4CqL5FQ3YCTfWoytWQdjrkPJeK vJDc6keFp0YCSlVmkulu1VBfnZ44sh4LYeHsZxufU+AfawsJ67l42a3ce/O3/ve7MdF1 Y2Xl5mfdi5y9sg+toxo4OLRx0/RrGEeH7cQH0nFuzARpmHkMrDdsb64KsUgizxALNNuY HBDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2r5PVBmK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b13si524846plz.403.2019.08.22.14.26.25; Thu, 22 Aug 2019 14:26:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2r5PVBmK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731612AbfHVRJn (ORCPT + 99 others); Thu, 22 Aug 2019 13:09:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:59506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390749AbfHVRJX (ORCPT ); Thu, 22 Aug 2019 13:09:23 -0400 Received: from sasha-vm.mshome.net (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 259F5233FE; Thu, 22 Aug 2019 17:09:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566493762; bh=dhFbCe2f3J1SbQVdDWTyUGWXn2ONzOFnM2sJD1VyaQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2r5PVBmKUnGziYXNYJrABwYaX8P0IRx66iIuTJRDfdUbt5MhvCc0Ysc42JsbjPvmk UhAke82gHf5CyPfnPVdusgt6p7DVJG7x4aSiBzhVNmlUkkNBjdzmAVwf6puvrcxgPs qgk26xkNftFVSowGWC9txDdnQNeUWAQ//qjAfs8w= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Roman Mashak , "David S . Miller" , Greg Kroah-Hartman Subject: [PATCH 5.2 126/135] tc-testing: updated skbedit action tests with batch create/delete Date: Thu, 22 Aug 2019 13:08:02 -0400 Message-Id: <20190822170811.13303-127-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190822170811.13303-1-sashal@kernel.org> References: <20190822170811.13303-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.2.10-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.2.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.2.10-rc1 X-KernelTest-Deadline: 2019-08-24T17:07+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Roman Mashak [ Upstream commit 7bc161846dcf4af0485f260930d17fdd892a4980 ] Update TDC tests with cases varifying ability of TC to install or delete batches of skbedit actions. Signed-off-by: Roman Mashak Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- .../tc-testing/tc-tests/actions/skbedit.json | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/skbedit.json b/tools/testing/selftests/tc-testing/tc-tests/actions/skbedit.json index ecd96eda7f6a1..e11b7c1efda3e 100644 --- a/tools/testing/selftests/tc-testing/tc-tests/actions/skbedit.json +++ b/tools/testing/selftests/tc-testing/tc-tests/actions/skbedit.json @@ -509,5 +509,52 @@ "teardown": [ "$TC actions flush action skbedit" ] + }, + { + "id": "630c", + "name": "Add batch of 32 skbedit actions with all parameters and cookie", + "category": [ + "actions", + "skbedit" + ], + "setup": [ + [ + "$TC actions flush action skbedit", + 0, + 1, + 255 + ] + ], + "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action skbedit queue_mapping 2 priority 10 mark 7/0xaabbccdd ptype host inheritdsfield index \\$i cookie aabbccddeeff112233445566778800a1 \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"", + "expExitCode": "0", + "verifyCmd": "$TC actions list action skbedit", + "matchPattern": "^[ \t]+index [0-9]+ ref", + "matchCount": "32", + "teardown": [ + "$TC actions flush action skbedit" + ] + }, + { + "id": "706d", + "name": "Delete batch of 32 skbedit actions with all parameters", + "category": [ + "actions", + "skbedit" + ], + "setup": [ + [ + "$TC actions flush action skbedit", + 0, + 1, + 255 + ], + "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action skbedit queue_mapping 2 priority 10 mark 7/0xaabbccdd ptype host inheritdsfield index \\$i \\\"; args=\\\"\\$args\\$cmd\\\"; done && $TC actions add \\$args\"" + ], + "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action skbedit index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions del \\$args\"", + "expExitCode": "0", + "verifyCmd": "$TC actions list action skbedit", + "matchPattern": "^[ \t]+index [0-9]+ ref", + "matchCount": "0", + "teardown": [] } ] -- 2.20.1