Message ID | db3de9cabd485e3c60b6cceb5a91aae630217cd0.1527788672.git.petrm@mellanox.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-kselftest-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F41C6602BC for <patchwork-linux-kselftest@patchwork.kernel.org>; Thu, 31 May 2018 17:53:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E00502040D for <patchwork-linux-kselftest@patchwork.kernel.org>; Thu, 31 May 2018 17:53:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D4A04219AC; Thu, 31 May 2018 17:53:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FF772040D for <patchwork-linux-kselftest@patchwork.kernel.org>; Thu, 31 May 2018 17:53:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755969AbeEaRxB (ORCPT <rfc822;patchwork-linux-kselftest@patchwork.kernel.org>); Thu, 31 May 2018 13:53:01 -0400 Received: from mail-he1eur01on0044.outbound.protection.outlook.com ([104.47.0.44]:58816 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755824AbeEaRw4 (ORCPT <rfc822; linux-kselftest@vger.kernel.org>); Thu, 31 May 2018 13:52:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BD3uPFFTTOf1eLWz72vmoqhjYEj3XkfJh2cxXZ0g154=; b=MbcQIE48bymKw/QwV40CtHzbPFSxRCu8cAfaR8h5WF/0/LoGEfSvc34Hl46v9FjOD/pKDXkAkZCTEcKCFvT9syHr2+Z4HAbywcjcxlQisE1IsCJKaIMKsX/NJcMjpzaOuSnSE0aSsXmTnn6pZXyHS3b5UK4YD6vN0aISzw6LKpQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=petrm@mellanox.com; Received: from t540p (78.45.160.211) by DB7PR05MB4185.eurprd05.prod.outlook.com (2603:10a6:5:18::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.797.11; Thu, 31 May 2018 17:52:52 +0000 From: Petr Machata <petrm@mellanox.com> To: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: davem@davemloft.net, shuah@kernel.org, idosch@mellanox.com Subject: [PATCH net-next 9/9] selftests: forwarding: mirror_gre_bridge_1d_vlan: Add STP test In-Reply-To: <cover.1527788672.git.petrm@mellanox.com> References: <cover.1527788672.git.petrm@mellanox.com> Message-Id: <db3de9cabd485e3c60b6cceb5a91aae630217cd0.1527788672.git.petrm@mellanox.com> Date: Thu, 31 May 2018 19:52:47 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [78.45.160.211] X-ClientProxiedBy: LO2P265CA0102.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:c::18) To DB7PR05MB4185.eurprd05.prod.outlook.com (2603:10a6:5:18::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB4185; X-Microsoft-Exchange-Diagnostics: 1; DB7PR05MB4185; 3:IpVxsWMYN3NjInjXwB0LuRYybXtG0lvgCxKU0OjwjJ47EBAGGURwizz1ziTnYiWphVgVEnaxjQ4699FxPjp6TuyaupTL7rI6RZVCrvTmUjzPCoZ8Xsk7KL4pIAQOMEl+Ai+7ZnJZsvAro8MfrB4cZ6onzq50C8yml62ouJHHLMGiWDkIdd6qz0kF/9vvAr+MVWSDTK0Q59tpNR98xMh3TvPRW23lmbwEzpNo689ib7fO6MnqU2nEgGOZW6F3dN0w; 25:ITH/FU8NPb3oaqMS0vT8pBidUbiLYE/xS4iIx7OKsAVEdgABN7e57lzWjPF7vwrxs45kCVWboGpT+iSW3OhtYxAgXDyqa63yj5GI94IX7kMgyAuv4dKnXCoxJplNq4ni01iOr99hdaqt7VRelUnZRAg8a21x9UsP1HHiqpD02ZaxVGCx48evaNRItB4/eTKm3Vb2QbUP8tEexnIkk/bIHwdu/srAgy7Pp0AkhOGFwZ4HulXm1tpipKwKn3NMaiMr5ikniMUgipxFSSdWv4hJm0R9MXE/72panPCpG8cXZOr9D8n262zNiCJDKnK3pjgLoL75P4aHgyx8KwfJWcP7DQ==; 31:9w7Q/1mxnS1EoB7FJasBnB64WJYXVqWoOHbIycJQaOSg2QgL+WT3+tRtc1Sm1YmbCbYVC3aOpl6ADY0LuSy3gPoeNCLhItoFkO8TQc7r5KI3ALLSoBfDJFoC13P7WIaxpeG8HE4wdg7N2eJs2hBfyi01zorHHKgnTFQQ+X93qdxyeFcKWlOJu4TLotko5ltqlniIYIOpAljoscJZsgaVvKPuxbPrAWlSwyjxEeHHq4E= X-MS-TrafficTypeDiagnostic: DB7PR05MB4185: X-Microsoft-Exchange-Diagnostics: 1; DB7PR05MB4185; 20:D82oyozKZpYY7Cx2QYfSBlyCMWwc1fXzVokvik3t2uuJsIvznNJgdpu/QHPlINZISCMPX5PZXTWaRNriFnGaxyt9+3uhAo5eByDsxGfj6a95V7GZa6T1ZgO7xkmgYy9WEF85NGogyLqkh7K78eCloFDfecnpTJftNNyXPrjBfKJd4i52DGFbm3WANp3fgoQ4zGiff8ya1EDxxDNp38k7tKocTHesKwaSGd+IiiDX4HElD4RwIbFOj40grvFcerrm5B2McKFWPq8yeTm3X2Y8tyvc51AseVLI1jFh2IOGEBt31O6aJNnaL4cvquLvEjYlY6R6oH+Yv0+2TE+7nNWP0DmEpL0yMQFVDsBaRm+rZfbJ4BL9H6bbY9/kGxCAcCCH/ftL/Ak/ppMjgsrWuGpAp+fBJ2n1hctwfl7g9LI90xGgJCrpOjbJaPmrfzhU7BPveV8Cwropj+vZGtp2aGVDuWSslkKVtz+bbHsLJRfzCMcSeO4Vv4frLcritipWTsWS; 4:guRi4caFaTRdis9x29NUIxpEYlMRD94GEBhhZRLEb2tVmoGHt7vhl/NaCQk7sflZ7fRVDq/1sSOssW6sglc5wI0TXWhz05OgQGxN568JlgGFqrExIpcqhIyRkjW7GtNvTZDPrKCEI3KqwG8H6kWjP/7BWaNbCbMa8ET18MeGmlNIh2pLc4m9reobFo/8jd7S9kOVSDY+xoo9nK/lowRwjWFnRSUH51Jn0herMAj3iasd6YE2bQB5bXdcX0SK5kt9MntTanvUGgoguGYRsqRAwQ== X-Microsoft-Antispam-PRVS: <DB7PR05MB4185A1B5396D3D1BD0F7B4FEDB630@DB7PR05MB4185.eurprd05.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:DB7PR05MB4185; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB4185; X-Forefront-PRVS: 06891E23FB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(366004)(39380400002)(39860400002)(376002)(346002)(189003)(199004)(6666003)(486006)(6486002)(478600001)(6496006)(97736004)(86362001)(50466002)(81156014)(48376002)(26005)(2616005)(3846002)(7736002)(36756003)(68736007)(5660300001)(118296001)(6116002)(47776003)(107886003)(476003)(956004)(106356001)(305945005)(76176011)(25786009)(8676002)(446003)(53936002)(105586002)(11346002)(66066001)(386003)(51416003)(16526019)(2906002)(81166006)(58126008)(8936002)(16586007)(52116002)(316002)(15760500003)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB4185; H:t540p; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB7PR05MB4185; 23:3lqJ1Uj+SJ5zx9g5+1KoUrd2QNSzDhxTu4xjIArZj?= =?us-ascii?Q?KTPv6Vl3IwMi0Z8btfZDg2cdUvtDjKwvGkVczEaEmJkTxiTcqjHOoYO3NuNH?= =?us-ascii?Q?nFon66yA/E0uhuupoHBWEY/3HjOLkjA5jWe3k3l4eqcHlKPiu61ZAmGTafaI?= =?us-ascii?Q?0INM1NpOV7nL6OnjJoIFlEL5G7gtoXuE5u2Zzo9CN2DgvNPoyXoyEAr/aqhr?= =?us-ascii?Q?1J/wUdZQtAiplHs1IcEDaGoCef9oTLl/zVFtu/t/kU/xz0T9oMm1y0fz0dvX?= =?us-ascii?Q?GZUnt1bgR7qeMjUQNz00nhBmkBh6TdcjcLfYY2L/KESLC2uZsSUqbh2NuqYn?= =?us-ascii?Q?wt8Gs4MINwt6IwJNebGcdhK7GmIFuhBtBrz2gP9TYLVKYHJHpZg4K+RiM+Hi?= =?us-ascii?Q?/B6rb0kM/HMvO+0MkOKWDv5hI8YZzL+PleN0vEDHQdsKUAEh+9TycJDEmMlW?= =?us-asc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s1YChO+VAqK9jBs/zxHKqFVmut4XYAMFzCsi095mDtkJheslRa89r6JH3xXrUt408FO9N8HeJRiqO5DveqDNkF/A4SaHvpo71 X-MS-Office365-Filtering-Correlation-Id: a9fcd200-4a08-4b4d-e3ed-08d5c71f5562 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2018 17:52:52.9813 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a9fcd200-4a08-4b4d-e3ed-08d5c71f5562 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB4185 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kselftest.vger.kernel.org> X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1d_vlan.sh b/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1d_vlan.sh index 3d47afc..3bb4c2b 100755 --- a/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1d_vlan.sh +++ b/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1d_vlan.sh @@ -11,6 +11,8 @@ ALL_TESTS=" test_gretap test_ip6gretap + test_gretap_stp + test_ip6gretap_stp " NUM_NETIFS=6 @@ -80,6 +82,16 @@ test_ip6gretap() test_vlan_match gt6 'vlan_id 555 vlan_ethtype ipv6' "mirror to ip6gretap" } +test_gretap_stp() +{ + full_test_span_gre_stp gt4 $swp3.555 "mirror to gretap" +} + +test_ip6gretap_stp() +{ + full_test_span_gre_stp gt6 $swp3.555 "mirror to ip6gretap" +} + test_all() { slow_path_trap_install $swp1 ingress
To test offloading of mirror-to-gretap in mlxsw for cases that a VLAN-unaware bridge is in underlay packet path, test that the STP status of bridge egress port is reflected. Signed-off-by: Petr Machata <petrm@mellanox.com> --- .../selftests/net/forwarding/mirror_gre_bridge_1d_vlan.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+)