From patchwork Tue May 25 15:36:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Sukholitko X-Patchwork-Id: 447817 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, URIBL_BLOCKED, 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 61F25C4707F for ; Tue, 25 May 2021 15:38:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 44DB4613D6 for ; Tue, 25 May 2021 15:38:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234267AbhEYPjs (ORCPT ); Tue, 25 May 2021 11:39:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234222AbhEYPjr (ORCPT ); Tue, 25 May 2021 11:39:47 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE3A0C061574 for ; Tue, 25 May 2021 08:38:17 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id 22so23514977pfv.11 for ; Tue, 25 May 2021 08:38:17 -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=adhT2rZ/a9FvNXm2/zsW/D7A/a8PxehIMbZQGEPbAf0=; b=MHm8cm+jKkS4Lu4Sj1HfS/JhODhEJzitfZdOsdgdmQCqDEUvRmCVMrmwHiF379lC1+ US3bpX1ITMFwM2kFlQYVl7gywAhzE0mdSHTUqBW9o10DJ1NAS8cuaL1+uCaO9J0ck2tS Hygx1r42MMGep2G9qhSveZLQ9gPDsPEdBFPA0= 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=adhT2rZ/a9FvNXm2/zsW/D7A/a8PxehIMbZQGEPbAf0=; b=el7uePy+Okai8EZejX1sjTlS564Kj4qGvR2jIC99p6zZMS7BArZfroO03bvqHxqMl2 SfPV40FG0DGkfJ1QhFkOnasnk1J110ZTmJyY1Fa7SDnry1ZAWDdlvUGs79V9lJ5TDr1H 3BG39mJtXc2QmIZOv3IFCDNC1Y2DIEAFrUOWQPqPqU6cIASXiV/iLCujLSM7vg8H/zx4 vvjSBfqjOwX6w7sCfuWCEvt1KH85R/VdR8OFo6nPk6jhgqFIxqPWboXhK/HYv1TbKDnm KK1xwFB6DLoHcxrV+2Q6KzhPl5iF+CUAZxJDzMmdv+JfLsleejQxndNRxlENE6GcNKKi DLMg== X-Gm-Message-State: AOAM533LgDrYxe4eWTrNoeYlK8CJkD3Hsg3BohK43wjfaQ1SOfwlaUB/ Q+Qi+gyQfP35Z7si2JikLlEJ8MohlAwJONQgOnyslWGfOo+fG9x08qnmfzyzrU1zpfjTwKmvK75 vwHXDmsjw5m0cui1t7q3kaDs0BUG5nc7sQtyxzRjg6twKX0FCdvSXBnCYPjSF46SczlfqKieG6q 123ZaTbu8= X-Google-Smtp-Source: ABdhPJw6w9WrmIQYeipGdPiVG9D4fbH6OyVcxIncFjqK0eJOKsq2KkL0uf+fDjVhVSBMHKvdri+qQw== X-Received: by 2002:a63:5511:: with SMTP id j17mr20044586pgb.191.1621957096671; Tue, 25 May 2021 08:38:16 -0700 (PDT) Received: from localhost.localdomain ([192.19.250.250]) by smtp.gmail.com with ESMTPSA id f14sm13388369pjq.50.2021.05.25.08.38.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 May 2021 08:38:16 -0700 (PDT) From: Boris Sukholitko To: netdev@vger.kernel.org, Jamal Hadi Salim , Jiri Pirko , Cong Wang Cc: Ilya Lifshits , Shmulik Ladkani , Jakub Kicinski , Davide Caratti , Boris Sukholitko Subject: [PATCH net-next v2 3/3] net/sched: act_vlan: Test priority 0 modification Date: Tue, 25 May 2021 18:36:01 +0300 Message-Id: <20210525153601.6705-4-boris.sukholitko@broadcom.com> X-Mailer: git-send-email 2.29.3 In-Reply-To: <20210525153601.6705-1-boris.sukholitko@broadcom.com> References: <20210525153601.6705-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 4675f1c04d17..10310c92ebe7 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",