[net,2/2] selftests: ocelot: tc_flower_chains: make test_vlan_ingress_modify() more comprehensive
Message ID | 20230205192409.1796428-2-vladimir.oltean@nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1902741wrn; Sun, 5 Feb 2023 11:48:37 -0800 (PST) X-Google-Smtp-Source: AK7set/0kgIg0z6VnDoGaTN6ZRCLBzKwt+O2A88Xo7c2IJt7DPLJKlxJumszDQyR54RKLhW6kv28 X-Received: by 2002:a05:6a20:3c88:b0:bf:7b3a:fd59 with SMTP id b8-20020a056a203c8800b000bf7b3afd59mr18729482pzj.54.1675626517699; Sun, 05 Feb 2023 11:48:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1675626517; cv=pass; d=google.com; s=arc-20160816; b=fne6uyBAzRFRWenBXA7vZ85ZvA33k3HUdJAyqj3zAj8XoDMmRU0lyegzWed0nYbx/S nA9FxtqcoN/ijLmuz/ROsudd9Nkotq1hepsPJ5X/B54eEuFBdMc3Y+JWtBjvKZ8FOIdB 2aZwlgbemaTz2sMLdy2durMoRJooGzhcqBo2h9H05N31Mi9E3DtvguBObnT76o3+v+Mv RxoXijGDSR2jwo7NxMIOnQ+3fqBjJiLE2bjKlPATdBeLQOp5yAOnUikOWfrMJwbAskS0 BGEnCBmhOQT70shv6LwjzHwIPvMK8+YMlVruBbBGtlMD0rddpFucmi9iRAl6UsimBdPa jWPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xxIwUwKxWN6RNJn8UkA+u1msz2UasSdFRO0co8Oegik=; b=Z4ONTacPnwB5SwMCap3J0TLOTsk7PcggNH8cgZQcYiNdTCOyJZ+aFAsRyPZRc3WFbl cq3wq2Y2zbW4OnoUC6pIHUHAKSfPU08lpfDLBY4jft5HXCh+m7U7pG9EhQ6RyfrdbBuo pqHQyh7p9M5lzm47L0IFeoGDFodmPajKqMAfoJtshEq0mohDRQZMTOE1BwJehm2e8sUm CXWcyzDGwodvfCYd2P03x/pQItVhQvmTmPXdpN3A2fTH603IjRt88HaF3sEzyILwvp9k LwyXNiuYD8YB/0+xGSm2YarzdoLk6FevGAv5hnMOPMuvi22vLrIQkxMwUFrgq6WDvVIl VHSw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="Bd6w/JyE"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p4-20020a63ab04000000b004da46ea2717si9682322pgf.35.2023.02.05.11.48.25; Sun, 05 Feb 2023 11:48:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="Bd6w/JyE"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229550AbjBETYf (ORCPT <rfc822;nicolai.engesland@gmail.com> + 99 others); Sun, 5 Feb 2023 14:24:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbjBETYa (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 5 Feb 2023 14:24:30 -0500 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2083.outbound.protection.outlook.com [40.107.8.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C50018AB2; Sun, 5 Feb 2023 11:24:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZQilMgcJw+APNkCM9FAHCJ/Z8kee4I/qz/bESgmMIwU6qKd5Ho4jDcN6Wzlb6fLrq3CEtrCl4H4qy9Ws3OUENGJ0bv4xEWQtt6W+32yHrNC6HwxmHlb+TFXTt6bCUyNI89PO5F7k0FQwFxuck0YGgBEg+obYSRQDH21BeQjT4NyVj/2kx9vjl2dRzMXnyGAqIv60Nf/J4n6CBPiVKy+QagSlKS0DI4znKR1m9KL/meIbb65CqBWVR83YKQ5GNDW44zehhe9R6z1Y6yB0S7I6g6TtV8CuV2qNZZS6P2aFlABaVpRmra76zE+dQVHzQozc7FtA3+b8X9DWc9sWUSeiug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xxIwUwKxWN6RNJn8UkA+u1msz2UasSdFRO0co8Oegik=; b=Ml3xMwGSOpiUK0U+WOmsLw1wwLS4Xplfqbe8/+ngRERMmFA6ntlHZfSYWYbU3t24xH/G3D8inUMyRsRhVWbvWcoLb6vLCGYuCiz5Nuev3ec7j2SZghZFpie2lrdJnn/2zN6/srD2QdapPWFqkaZ50VtuaLvFNNfPIJCOJeQOJOgD2/ehu1obcUnXg27p2nMRdXdOnj8++odHqcPXiF/uWdiDPlDWWMt+DaKfcS3lILRiBOjY4f9resOR7C7r/+adrVfd8yYPeN0329IzWFhxFvD/fQGDvjCccgOt75dR5rTnm2KuRQXnZj4SwWwDTuzWPmACrA/O3TQ2sigmwc2bLQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xxIwUwKxWN6RNJn8UkA+u1msz2UasSdFRO0co8Oegik=; b=Bd6w/JyEdZ838H6BszlVVy2OaPMLSQZgWEyAy5ezBFgMzsxwIEEUz0qyKM5EUddo/sp9NBZxeMbBI9v9abH9qlKyJnKRP8GDwejdfjvtE1itxDWyX7VZPlc+71w7AGmTEFe1xiBwNSlfPSA7+V9M2hu230/xH4uK443xg9jyR6E= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by PAXPR04MB8391.eurprd04.prod.outlook.com (2603:10a6:102:1c4::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.32; Sun, 5 Feb 2023 19:24:25 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::3cfb:3ae7:1686:a68b]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::3cfb:3ae7:1686:a68b%5]) with mapi id 15.20.6064.034; Sun, 5 Feb 2023 19:24:25 +0000 From: Vladimir Oltean <vladimir.oltean@nxp.com> To: netdev@vger.kernel.org Cc: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Claudiu Manoil <claudiu.manoil@nxp.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, UNGLinuxDriver@microchip.com, linux-kernel@vger.kernel.org, Andrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com>, Richie Pearn <richard.pearn@nxp.com>, Xiaoliang Yang <xiaoliang.yang_1@nxp.com> Subject: [PATCH net 2/2] selftests: ocelot: tc_flower_chains: make test_vlan_ingress_modify() more comprehensive Date: Sun, 5 Feb 2023 21:24:09 +0200 Message-Id: <20230205192409.1796428-2-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230205192409.1796428-1-vladimir.oltean@nxp.com> References: <20230205192409.1796428-1-vladimir.oltean@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BE1P281CA0109.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:7b::14) To VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB5136:EE_|PAXPR04MB8391:EE_ X-MS-Office365-Filtering-Correlation-Id: aac7520a-c306-4c21-0113-08db07ae978c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lRuyUax3nGD4S+aM5Dmud4gYHPMr7uOkr8k2KPKX7A/Wa2naY3ITigyjUWX/TyfaW4nt8G9vDXwKIcr0ye8EN8hqyXLlI/QCvOKIH0rovAQofJNmWfEWodloYlwHU9OZH6L5GvyhSXaEl5JBQGBkA4IHtVnCjy1DcZmBRvyV8K0xWEBRK0oQOnEUg2LkujVkjnlr+OPCFyagoMrBjrjGDcwItJrtdBHmxmLxcQnvvKxq6fEkVNkbRHe/YwQKepSb9cfHQoRJhJ69j5jldK9oEHKFYch/quqhTl/J6ApeCJaoICGP3/VrQWTvslVJkofqcZCD3gPUZ8a6wK7+qWVhvP9RMd5aLS+6ixl+knVK67g/qjJeyxMcbESPcOFaHOYyqDhDrsGFK0u/Da2zetRHNUpIj4ttdF8M+ZQ4MsHjUmpEWIzI++aKPMGMHqGmycercwMztU9Pgf61V3nzz6KpnQDTek/LAbMu4cKqrDziXqxG20zJDDUXBECErt/6k3vNflf51LLFQiW1fS7h/34rp6EL9zNKvNqrebhvpTg7uNSvzngy7JUeIrAAphOoUqqgrAr9Z1SNUx4X1xyxjT34RlM6gD2RtQjA/i+75oDQmrh36aKZa40CZDEqro4VVjG/pWwtnwxHmtGM0Lqwn6aOpY1bNGydiWVH1Qeqy0WwcIUDcpL/muW7FOgTDk7o03bc X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5136.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(136003)(376002)(366004)(396003)(39860400002)(346002)(451199018)(52116002)(54906003)(66556008)(66946007)(316002)(4326008)(6916009)(38350700002)(86362001)(36756003)(38100700002)(2616005)(186003)(26005)(6512007)(44832011)(41300700001)(83380400001)(7416002)(2906002)(66476007)(8676002)(8936002)(6666004)(6486002)(5660300002)(478600001)(6506007)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: B7jmWD+gXNOe26vSjK8WLEgQf0tpArf8Ewk19DEmfkLQECqAFUelcTwZPthR94Ak2VfLwWRrHLpOMDUYsHAZp9/8xveg6OUPKP6L8BrjItDTPFJGQWPyT23Fh8jGkY8L/98P7Ub3kjW3Y31Of2h7HghObK9DZGnZbT6eYGYFK8EEXIXSf28CO2rw3I0/4MEQOErEqttcJrD84mt9Sdp9Jqs2ukQxSX+eBPXxQqdNUT/y2MoUK8P2I0BVoWG0rOZCldMVSyXwMElo81gFDzcRt2ujn/ZiwfXRZu4w8sU+i5CIkSCh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KYmHY/B7TnAP0iO+KbmSgNBNilas+y++D1yR6AF9Nez0yJTDN1tkm46CjUqEbQTKZnrQ9bwlEvmJazTIqUC5Y10f7HdHixhqhNxOHNnfhp0dO2ROBzsB5uOjQQRvDkpygnc/R5iFU1FVUXD5y29M6GpXiprgouXx7/J1ZGHUuMqN/Tp4wNEXev3b8V+A0bIqDZC/vOwW8Y2bRHlkdXzbWdWZL8QcQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: aac7520a-c306-4c21-0113-08db07ae978c X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2023 19:24:25.8014 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 4ElCJRPJVMK6N1Cnwyr7++tydJfXnMPWonRna7WH2UvVzWZpI/UwD3P6d/8YaWTCaIuhz05IS7iooAVIJ9GxqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8391 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757021751591746397?= X-GMAIL-MSGID: =?utf-8?q?1757021751591746397?= |
Series |
[net,1/2] net: mscc: ocelot: fix VCAP filters not matching on MAC with "protocol 802.1Q"
|
|
Commit Message
Vladimir Oltean
Feb. 5, 2023, 7:24 p.m. UTC
We have two IS1 filters of the OCELOT_VCAP_KEY_ANY key type (the one with
"action vlan pop" and the one with "action vlan modify") and one of the
OCELOT_VCAP_KEY_IPV4 key type (the one with "action skbedit priority").
But we have no IS1 filter with the OCELOT_VCAP_KEY_ETYPE key type, and
there was an uncaught breakage there.
To increase test coverage, convert one of the OCELOT_VCAP_KEY_ANY
filters to OCELOT_VCAP_KEY_ETYPE, by making the filter also match on the
MAC SA of the traffic sent by mausezahn, $h1_mac.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh b/tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh index 9c79bbcce5a8..aff0a59f92d9 100755 --- a/tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh +++ b/tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh @@ -246,7 +246,7 @@ test_vlan_ingress_modify() bridge vlan add dev $swp2 vid 300 tc filter add dev $swp1 ingress chain $(IS1 2) pref 3 \ - protocol 802.1Q flower skip_sw vlan_id 200 \ + protocol 802.1Q flower skip_sw vlan_id 200 src_mac $h1_mac \ action vlan modify id 300 \ action goto chain $(IS2 0 0)