From patchwork Thu May 31 17:52:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 10441579 Return-Path: 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 542E1602BC for ; Thu, 31 May 2018 17:52:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4209C28F49 for ; Thu, 31 May 2018 17:52:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36E0028F86; Thu, 31 May 2018 17:52:45 +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 C4F4D28F49 for ; Thu, 31 May 2018 17:52:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755946AbeEaRwo (ORCPT ); Thu, 31 May 2018 13:52:44 -0400 Received: from mail-eopbgr50079.outbound.protection.outlook.com ([40.107.5.79]:22812 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755894AbeEaRwi (ORCPT ); Thu, 31 May 2018 13:52:38 -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=K7D2V4lffF/z3RVgTipy4R4g3LZDP93ZAB2v0LIYCMo=; b=E7ube+B6KcWwq45DPH0hz+As2Q81O4dkL8ETGiBYjj84+NFu8rGnIt1TJbsc0wjAVRirl6mn7awXSy6iG0eCdDyaiFSRhC95gs1mynZNwAAFi9izp5cwVyV60HOHEFjQybhHHHWRTRqp2y705ota0I73YWWQ5n/lRwa1BR7MwLk= Received: from t540p (78.45.160.211) by AM0PR05MB4177.eurprd05.prod.outlook.com (2603:10a6:208:57::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.11; Thu, 31 May 2018 17:52:36 +0000 From: Petr Machata To: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: davem@davemloft.net, shuah@kernel.org, idosch@mellanox.com Subject: [PATCH net-next 6/9] selftests: forwarding: mirror_gre_vlan_bridge_1q: Test final config In-Reply-To: References: Message-Id: <68dcc17b4f98dfda3b9f408edee906698b1a2313.1527788672.git.petrm@mellanox.com> Date: Thu, 31 May 2018 19:52:32 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 X-Originating-IP: [78.45.160.211] X-ClientProxiedBy: LO2P265CA0237.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:b::33) To AM0PR05MB4177.eurprd05.prod.outlook.com (2603:10a6:208:57::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(2017052603328)(7153060)(7193020); SRVR:AM0PR05MB4177; X-Microsoft-Exchange-Diagnostics: 1; AM0PR05MB4177; 3:qcb7nkIinoA64XY/rvXTw3QqN6gj2ZLdq/PppbwD48IKwVkcgzmjKlaOLZRJlFtZ2OJRkYHuH3xotYPFUtgI4not9DAVaZbVFoCynArqLVDdtqh1seWC76dYIRHmDbQ4utm2hBismjHukXx2xlKXJWZrHfXOHxEWtoJyu9buhtiu3ykBAsDBuZ01aUI0umc5uulf5ycUOd1tEzQWMGHvm9BphcyNt+S9i19X/UxkP2yx4AYLV9b/amhhOczSX5R/; 25:Sk8lH6HZw/17k1QFEWBaMBUe6GKMfy/nif4eLLBwtHCKZ0OYRUByLPeqWsVi0qEJoRxn3vDgJYA3adC9emIbph0qa8jDyKjkI7AI1JyZFtQh4/1QN6JwghImBsB0YJc9NVmk/QnL9LP5Sbq9R5TkbZfwG0HMu30N/kyyney4tzhcSKl3hrPRG59+/0klxOhOsc2iS7NsW3t2UxAQym7C+DeG95ki7/p65JFt6CO8KayuSub7+8DzPGCLi/HQTMyKBZ8I4+8FgSXu8Lsjbkmg3XwabOqhS8JoIUp+zwHh23sanKeIh/3NHyzCqCne6MS6qTaxn2s76muHful40Zub5Q==; 31:QqoktN9hm6r8rCgdK3GGQkLa8SffZX/nBl187q3/aaEvQVkUI1bg7twGBD5Hm9bybAIAp3FS+3X+cmJwIktCiZ83jQUpfzpKYlJscfjHonPCm8kBmzH+xdhfU/qrIeDcQYvi5alISJRdOuiP94EiIaMMRxCMQ50nyj61IhSiLwRcau/pV830d9TqUhawDj0FaMXO3E4w3FwYdlzSaAd2ImZ3LlUNcagvkszrSJ4BHpk= X-MS-TrafficTypeDiagnostic: AM0PR05MB4177: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=petrm@mellanox.com; X-Microsoft-Exchange-Diagnostics: 1; AM0PR05MB4177; 20:iphDrhTT2mbU0tqk8rgqXdNrWZlvnoV+GKxVWxNLn13qjfNi+G3fHzsLlIYH7T1LonyHu70pKBbcb6hoNqMOiLM8ILMLUXZO9EFMpm407om5bxYvfnh1yc5tbkh461Ba9DwVCBDtCXdnFZqbvojHLwNP5hK2mfH2FpSj2mlRHKB/z/9o+d0VmcjyPpTioCx6qLJWjgH0zfL1iW+FzWS47RDbxo/oy0RoSBzOneb8/BhobM56BZ/+j4dBQ7JQTg80KDbzAPv18U+t4F8BB+jPAluwr4w0nhd6N8R0gpFpDMsTGratuPc7PiH5nRhaH+5jli+ESBm/Ol3I7dVrBeg8FiGOeAm/FCzHbnl/0zRkaOXO3aSgI9zuNa7g/gq02e6PU+agXEfBDXdR7bmCob0ZR6CAxOhrKvB7/H5AjvPXgNDN7GwAv1+er5nugKO0nn/a2IztJ3vnDYbqngWNgs8DTKC4qF48wFswV8tViC8ibWqrwMfPYrrBew9uy6Kxc9oi; 4:UhHlHFFkcdmjdyHG4H5pURLhc1MBv8IOcdl12fVBmPsVqwXOuvorMIYviJuyRyFufnctVRuBLbDCPLsfQzBc4pbtHY2T8mNqBFWh0F+xZiLeEQAUmRyTyowZVAgTof6Nb4f+IDtC96kK2LDJTNPQ1hhNUVs0HvZofg/LJETg2uzbmK+gE9Dk+1SSM1TPSD9QlCpYnqV20UA8AOpMop+BpbfNqgEf7PULuRXxf1gLo5utyo/cYQvFc0s2lZUwYYCvXAH1D3Uw46ppuiTEfbPRvw== X-Microsoft-Antispam-PRVS: 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)(3002001)(3231254)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:AM0PR05MB4177; BCL:0; PCL:0; RULEID:; SRVR:AM0PR05MB4177; X-Forefront-PRVS: 06891E23FB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(366004)(346002)(39380400002)(39860400002)(376002)(199004)(189003)(8936002)(386003)(16526019)(305945005)(11346002)(446003)(478600001)(6496006)(5660300001)(7736002)(81166006)(316002)(486006)(118296001)(81156014)(97736004)(8676002)(6666003)(16586007)(58126008)(36756003)(76176011)(51416003)(106356001)(105586002)(52116002)(6486002)(2906002)(4326008)(66066001)(47776003)(107886003)(48376002)(53936002)(3846002)(25786009)(68736007)(50466002)(6116002)(2616005)(15760500003)(956004)(476003)(86362001)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR05MB4177; H:t540p; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR05MB4177; 23:Z5SZbZj3Xt7/Bb00XStEFos6bOSHQT3vCyBMhjMaB?= =?us-ascii?Q?DjIq7vuur60puWsA6weuDy2OKjAtUY1emRkDjTWmxnFFrLFloGOjMM2DjFcD?= =?us-ascii?Q?7ubD/i8ptyDRmf0cNqTtnBLcF+1fHPghO5/GTqseQtV3CUhiiIg754Px8Z27?= =?us-ascii?Q?KagIMB2YgekJS5rYvC1pICk+9ALje+aOpEwB6EgfN6RSnz8b006PSJO82xrA?= =?us-ascii?Q?iNnvaq9POdoY47/ccXONLD4uFykTlh3xbaMuhjLeAHCZTwTointXJH1Z6LIE?= =?us-ascii?Q?jYdNRyeNxeqElbjUj+wp/mt0na4zN6m0ikQxTEG6v2AQvkWnNrwx7nzfqXMf?= =?us-ascii?Q?qu3uLOjxo4tQzGmqDeOJHaY2V7UXBuRe+j3g7r4dSY0eZ67h5a44cBHYsx9o?= =?us-ascii?Q?WTIIz6+rfKMRd4ugc/yq0AG1wSXROPp3c+OWa4kQpx+5TU2l18WurHNt3ROX?= =?us-ascii?Q?Pp70B1P+uVxsRNE2lDORQ2aSqH5RvhRGOWPnOaXxr0ExVoMourxBuWqoE7YZ?= =?us-ascii?Q?UrFaxuIkGun+A+fdD/H0LxHDLEIcid9fxe8ap5fb26xUd57E89ZQgtPSPbjZ?= =?us-ascii?Q?UaKoIJS9lCA2DJ/S53v0wJz675fDd8W3DnPtb6SXvxL3pJm4pT9adD+0j+zf?= =?us-ascii?Q?bILEpkvLA8NobolV/8pbfATsgWatU+VKW+al3Yh5XT9Yvvvy9xl7JtHs/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9kJMQmgf9+YQUBCwZrp5QVhw6ap1pkfaY7ZjZPSKyha6qoZ5pX0cAfxt1KtAJl2BIzu8KSajeSvUV7U1fMaTaU8LOxMF0HAMAfszuT80zw1fAbEWBofODTFYD6AQ/YDGaizNZNcbjDSPgIRxv+2z/pEoQiSD9FFJVS5ADwk5E2ymBqZ3AJJDFbGw7wRWZ6qmUwFxQ5ICawfblRLX9Wp5cinU5k1tnwiAp7DOzP/Fb+aJTpL/AXR8BxC83lFoT+06TsSsZ1hp4DjH3w2aJpA==; 5:nXRZwn0UuxwgiGLnpprS0kd+NzrTE3R1DPMtp3ViZtfWuqoqEzuHJilS9+RjeK1flYnt9Tf9iI3XVHlkHPRDWFTuJ5WBNkfM+1siM7yzpxM7HiTnKmRj/tM4+x1Waqonmb3ShFfM59Pwy1N/zxzoynmX+CeYHtqiYXb3PBYKT24=; 24:HyNJQTQ/vACQuerGd4gXNkyeuPQCDvqPmJuy08XvXbuqJYfG7tW9TSfew44zhPJPYs/Bw+eWKAun2UfmvWcI0NR5tyz8ii6raZh6wqJcfjg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM0PR05MB4177; 7:pU7mZnbEc7+jKSFm5dBg9uD7+3z2eAzl33xZ9dFHJnADUyLpI7a21CjKpS8KcP2Uw1RgfXBE7oFlpvg1kObtO2nIzZ8NGK/TZrHWL6DSUBCLo/m+du+fi8yF1MEfebLB/mwFUH11vDp4/Xg29ggDZwtXv98zxLfqygmaVFopCgkAynR5Md90Sgup5wL1Kl+U2KMm9l85JI1/YShUljYh3SCnTTUl/qdfaMLm19fCljnbAcJWyiN6aB1I9p3nYy5t X-MS-Office365-Filtering-Correlation-Id: b6214f7a-4c10-4492-8326-08d5c71f4b78 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2018 17:52:36.3423 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b6214f7a-4c10-4492-8326-08d5c71f4b78 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4177 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP After the final change reestablishes the original configuration, make sure the traffic flows again as it should. Signed-off-by: Petr Machata --- tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh b/tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh index 29fde73..0a3bac9 100755 --- a/tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh +++ b/tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh @@ -91,12 +91,13 @@ test_span_gre_forbidden() # Now forbid the VLAN at the bridge and see it fail. bridge vlan del dev br1 vid 555 self sleep 1 - fail_test_span_gre_dir $tundev ingress - mirror_uninstall $swp1 ingress bridge vlan add dev br1 vid 555 self sleep 1 + quick_test_span_gre_dir $tundev ingress + + mirror_uninstall $swp1 ingress log_test "$what: vlan forbidden at a bridge ($tcflags)" }