From patchwork Tue Jun 1 12:30:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Sukholitko X-Patchwork-Id: 12291247 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2AFC1C47080 for ; Tue, 1 Jun 2021 12:32:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0A679613B1 for ; Tue, 1 Jun 2021 12:32:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233900AbhFAMdv (ORCPT ); Tue, 1 Jun 2021 08:33:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233905AbhFAMdq (ORCPT ); Tue, 1 Jun 2021 08:33:46 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DEB7C061756 for ; Tue, 1 Jun 2021 05:32:05 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id d16so11231481pfn.12 for ; Tue, 01 Jun 2021 05:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version; bh=pVs03MuZSONzhRJ5N1rTtJ1UzmBMUikVNlIQU0sSxWk=; b=SacrMR9OEru+vYv9fwFCooP8smYof5FYiCzI4IYYvk9LycdbGcoC/caQ8nGLz4Nm1l 1KWHa6ERu4MQCe3gvEEh9JzUvqUbzIiED9qOEfmpE8fBTkhoF+i1mss60S2HZXG5v1bA DqVfhDHpS/bNcMoSeQHpNIsE31tRWNxdYB07Y= 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; bh=pVs03MuZSONzhRJ5N1rTtJ1UzmBMUikVNlIQU0sSxWk=; b=nFrAkTg0dUQkgEGbvcZQ0YZASQEj62NuuGEGIcuBQWM1TsbeBfZHTibZGrHlm0mf9U iPghbDlnJDTi39PoeSp+MPD5TG3GUFOGQeBAUcIJ48PuVVakbGcjkE0ItAcdAGxALO15 fEgcL9cg7y8jyVU6pQtW6Fx+TigkWOLwC8lFAxLE8Ms2B+A8bSQ44WzD4mfnd+HSwYb8 9lyh0lhWJaCpioOpn3qczyNgGIPBpefaT3tXamKiAF6MJ4qWox4AMx65zyvr00HZFKph nFytIrNP58/Z/V0o2j46eMhLWNqlBGL20D0+79kBP69x7tg/dOkA06xS5pok4w+qQmGi Qh2g== X-Gm-Message-State: AOAM533xkOXS/5EgVBWD/n0idqAqG9FObhCAywcvHe8Nco1ikHu8m+VF EkZ/T2q9iDScSuPWTcA31tp07A== X-Google-Smtp-Source: ABdhPJxD/X8s1k4pf+S3cGwqvq1F7TnK1ZMzF/ZJTv0gpOiAYJm0E0zoyCR+oXDZzBEX3rBYk4zYcA== X-Received: by 2002:a05:6a00:cd4:b029:2e1:b937:77e8 with SMTP id b20-20020a056a000cd4b02902e1b93777e8mr21959900pfv.43.1622550724699; Tue, 01 Jun 2021 05:32:04 -0700 (PDT) Received: from localhost.localdomain ([192.19.250.250]) by smtp.gmail.com with ESMTPSA id p19sm13887734pgi.59.2021.06.01.05.31.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 05:32:04 -0700 (PDT) From: Boris Sukholitko To: netdev@vger.kernel.org, Jamal Hadi Salim , Jiri Pirko , Cong Wang Cc: "David S . Miller" , linux-kselftest@vger.kernel.org, shuah@kernel.org, Ilya Lifshits , Shmulik Ladkani , Jakub Kicinski , Davide Caratti , Boris Sukholitko Subject: [PATCH net-next v4 3/3] net/sched: act_vlan: Test priority 0 modification Date: Tue, 1 Jun 2021 15:30:52 +0300 Message-Id: <20210601123052.3887-4-boris.sukholitko@broadcom.com> X-Mailer: git-send-email 2.29.3 In-Reply-To: <20210601123052.3887-1-boris.sukholitko@broadcom.com> References: <20210601123052.3887-1-boris.sukholitko@broadcom.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Because explicitly being set, the priority 0 should appear in the output. Signed-off-by: Boris Sukholitko --- .../tc-testing/tc-tests/actions/vlan.json | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/vlan.json b/tools/testing/selftests/tc-testing/tc-tests/actions/vlan.json index 1d9d261aa0b3..7467021b31ca 100644 --- a/tools/testing/selftests/tc-testing/tc-tests/actions/vlan.json +++ b/tools/testing/selftests/tc-testing/tc-tests/actions/vlan.json @@ -445,6 +445,30 @@ "matchCount": "0", "teardown": [] }, + { + "id": "ba5b", + "name": "Add vlan modify action for protocol 802.1Q setting priority 0", + "category": [ + "actions", + "vlan" + ], + "setup": [ + [ + "$TC actions flush action vlan", + 0, + 1, + 255 + ] + ], + "cmdUnderTest": "$TC actions add action vlan modify protocol 802.1Q id 5 priority 0 index 100", + "expExitCode": "0", + "verifyCmd": "$TC actions get action vlan index 100", + "matchPattern": "action order [0-9]+: vlan.*modify id 100 priority 0 protocol 802.1Q pipe.*index 100 ref", + "matchCount": "0", + "teardown": [ + "$TC actions flush action vlan" + ] + }, { "id": "6812", "name": "Add vlan modify action for protocol 802.1Q",