From patchwork Sun May 30 11:40: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: 450780 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 75185C47093 for ; Sun, 30 May 2021 11:42:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 511FB60FDB for ; Sun, 30 May 2021 11:42:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229821AbhE3Lnh (ORCPT ); Sun, 30 May 2021 07:43:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbhE3Lng (ORCPT ); Sun, 30 May 2021 07:43:36 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D996C061574 for ; Sun, 30 May 2021 04:41:58 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id e15so3816080plh.1 for ; Sun, 30 May 2021 04:41:58 -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=C5vET+AXYEW91TYn85g/M8EW40hhV4DYIJr4nbEVFi8=; b=dvlyt70qfMRvOtGnqM8CtnFhtOA5R5czRmCoGvzaluzXC3TtmfgGrxxkHFTGJfQHyu ETiWxFLNX1LN8R44WanfzWhMEA8VTDPFUeYg2YdepcV4HL8tjwVVsjDC7y2MRCpCxQ13 Viz6osRokGisasn90zVBdJq5OosA4zEGoz1f8= 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=C5vET+AXYEW91TYn85g/M8EW40hhV4DYIJr4nbEVFi8=; b=gR7mRBY2MXpxVwBAQ7mlRRLIenR/RX8jWw20pMDcjOlEksiHT/OiBGLYueiyz1fD39 pdMy6CEcXyf5EozuW5P4b//cYgxP866NWqYfXgH2YaqDxbk+32V7hJ6wzk+FRIw+UAOr VKYYmrhCxZRxh4AZj7LnAbqme7bJObsHHcfaN7w1cF3l2FyFqFwoHG5r6QCLBIs64A0F zxiC81CCGzvU+g9ut6mU+9n3BKFuy0l5jL7Qubw0TKFEsxbWjeH88O8k+PMKkH1VKHvs UM+JrDFbeIrHvYWPlZ6QsZxa5nZHGYQw8SBtx3gIxnUcmNAXISBpeecpsE74EVHsNf1M lWRA== X-Gm-Message-State: AOAM533XuiGMsgYmeJ4L1D93gVP9CDf7o6fWvTH4hG/Arm3MEwOPPA4p ieKET3sVdSM4LUTV/0D0IYLDk1CF0F6FT1HLN1n1GdIxmgEPyScbzpRlw2+ZPyBiCX3/6AkSBOB 10sVNSM2J5tzpfJ5M1xFpdlF8utQpiB+dzFP6+9kZyEIDj4dQycuHI1a3hsFQugQWDfaUg1ioQI xMQKaAO2c= X-Google-Smtp-Source: ABdhPJx4xTut+yHm4h8qMCmSFgLyw60mUtmmpsUZ0a6cjaIwlAv2M3yqw6LlQvVf/0OI6e8HEOsOXA== X-Received: by 2002:a17:90a:d313:: with SMTP id p19mr14232222pju.175.1622374917665; Sun, 30 May 2021 04:41:57 -0700 (PDT) Received: from localhost.localdomain ([192.19.250.250]) by smtp.gmail.com with ESMTPSA id o17sm8126093pjp.33.2021.05.30.04.41.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 May 2021 04:41:57 -0700 (PDT) From: Boris Sukholitko To: netdev@vger.kernel.org, Jamal Hadi Salim , Jiri Pirko , Cong Wang Cc: linux-kselftest@vger.kernel.org, shuah@kernel.org, Ilya Lifshits , Shmulik Ladkani , Jakub Kicinski , Davide Caratti , Boris Sukholitko Subject: [PATCH net-next v3 3/3] net/sched: act_vlan: Test priority 0 modification Date: Sun, 30 May 2021 14:40:52 +0300 Message-Id: <20210530114052.16483-4-boris.sukholitko@broadcom.com> X-Mailer: git-send-email 2.29.3 In-Reply-To: <20210530114052.16483-1-boris.sukholitko@broadcom.com> References: <20210530114052.16483-1-boris.sukholitko@broadcom.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@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",