Message ID | daf8235f3af7ca43d2fcb220f309522982b713a4.1527093017.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 CBB486032A for <patchwork-linux-kselftest@patchwork.kernel.org>; Wed, 23 May 2018 16:35:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B74E4290E4 for <patchwork-linux-kselftest@patchwork.kernel.org>; Wed, 23 May 2018 16:35:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E9F27290C3; Wed, 23 May 2018 16:35:24 +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 9987F291D8 for <patchwork-linux-kselftest@patchwork.kernel.org>; Wed, 23 May 2018 16:35:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933599AbeEWQfU (ORCPT <rfc822;patchwork-linux-kselftest@patchwork.kernel.org>); Wed, 23 May 2018 12:35:20 -0400 Received: from mail-ve1eur01on0067.outbound.protection.outlook.com ([104.47.1.67]:8288 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933625AbeEWQfQ (ORCPT <rfc822; linux-kselftest@vger.kernel.org>); Wed, 23 May 2018 12:35:16 -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=usmWcbTvrnxI2naQRIjpUoEuweqUDQ6+n42Fo/f/ur4=; b=QvoQuWXZnxCVNrqurR1nlntECtnxQ4tRD0W44rki2ddTwODKZS01ZxcIFjZ1s+2U3AbaNRCY4JY1fLhLIuHrt/bJmEBnLHF7qCxGqd6I/qE6eOAqxPTJgwwlyyKemFg6OvkDzu+qESl/m+ZhmNa+J2TaAW1Mcg1xKljUyywECKw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=petrm@mellanox.com; Received: from t540p (78.45.160.211) by AM6PR05MB4184.eurprd05.prod.outlook.com (2603:10a6:209:40::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.797.11; Wed, 23 May 2018 16:35:11 +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 3/3] selftests: forwarding: Test removal of mirroring In-Reply-To: <cover.1527093017.git.petrm@mellanox.com> References: <cover.1527093017.git.petrm@mellanox.com> Message-Id: <daf8235f3af7ca43d2fcb220f309522982b713a4.1527093017.git.petrm@mellanox.com> Date: Wed, 23 May 2018 18:35:07 +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: CWLP265CA0195.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:4e::15) To AM6PR05MB4184.eurprd05.prod.outlook.com (2603:10a6:209:40::29) 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: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pquVwOGYZsOWDQyNljXYdGyW9KdxS4ZOmc00tkbgswjZAEvPhy3T8k++l66bOD25YyLsPdZ48e6obXS+JmTdj0Vw9Z6OG1ZBsFqzbJTN24KePOZkAs7to5BGIZ4tbh5r4B42RAdP7RGmaxbxX3PbPYzJBbzKzpUaFhK8cmw0COdAKpJz+oLHfXefwbbEJ+bI/Mzgg0DO9c7d+gIvqoxpNSLFD6qLRbR82bpFbjr0vx2I37PyLycc7K89aoipbtfL+S72C2DGzTmTqmUKGRjfJB74+Gmhdivdk3xsFKzZW+zg7qGUfHrgQsF1ND43FHCCyKCfPtDHO7zKLliQi1aDULQz5es+SdCSjEKI8KSOiuFz1ju85jkVoLsStluZTbG89CUTNaGVYjp0dFb2Jtrz7YWwaH; 4:6uHowJfPHS9PNxicTg9UeWbiN9Xe6H/HOkHQGnlcdNgM1XtBxadMId58N94yiwDto5/8oIIYnhe9gW4uGBMc2mR3tauT36zeD1Tp7AyeOiLzDHFlLqRnJKRVLmUhDggXeATo5JFzmeXOIXZKruAlK6nRbiFJlSH5SarfTbXzrDzdL62G7qR6xTvQzwFYgPZrTfwgzj7v7LjjhAnuoFSjSC9hIkFkaWWC3R1GuWHuPjvKyN5scZTn8m3i0pUrlBBABAQCTUk69CX9akILd/CW2A== X-Microsoft-Antispam-PRVS: <AM6PR05MB418476FD1549435AC2A0E8F9DB6B0@AM6PR05MB4184.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)(3002001)(3231254)(944501410)(52105095)(93006095)(93001095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:AM6PR05MB4184; BCL:0; PCL:0; RULEID:; SRVR:AM6PR05MB4184; X-Forefront-PRVS: 06818431B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(376002)(396003)(366004)(39380400002)(39860400002)(199004)(189003)(956004)(6116002)(53936002)(3846002)(4326008)(2616005)(36756003)(446003)(97736004)(11346002)(5660300001)(66066001)(16526019)(47776003)(6666003)(107886003)(6486002)(86362001)(16586007)(26005)(478600001)(2906002)(76176011)(51416003)(58126008)(68736007)(118296001)(50466002)(25786009)(476003)(52116002)(6496006)(48376002)(7736002)(305945005)(106356001)(386003)(316002)(486006)(81166006)(81156014)(8676002)(105586002)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR05MB4184; H:t540p; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:3; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM6PR05MB4184; 23:dVT+kDJlxUcOKUwmcFIwlRDIyiYtyImLYjiYX8uqv?= =?us-ascii?Q?ktRcH/u+7XuAtmCObk51rq1YKSgyxNZsQft/hKHiLnWmOUBwHlxDSllIAYOm?= =?us-ascii?Q?uctOrGhghZsikNUAEAv03o9qO83j5qtXvHzIn3VaPVbiKsfKYtbtH8tfuz+x?= =?us-ascii?Q?jOaTYfDwewdtz7chpFQQHhuhSz7MimU46fX2MS7pQmFsidO7nHk4mwEqj6Gl?= =?us-ascii?Q?gS5BTW7RGuJWqFvEhavL+/mN1IjByGyzGIdvISizzkylP8Ny/qpjTBGf6Y4p?= =?us-ascii?Q?icKBsnCyBXBA7VESDDK+fl1XhagZEhgjlWTD4gwXc5Eu5BmMLs8CwJtVcGrg?= =?us-ascii?Q?GRShryCSe9WKF59bNSKBG+eg6p35AhFiGbLjz8g5KwNrDR2rpSRmOqwvFLoS?= =?us-ascii?Q?7uGWrwOEHPDeNAlSIpOVKAwEf2RMus9p+iF2Ac32vT1xdra2EVVAABe/PHpq?= =?us-ascii?Q?hvjzxbUkQ/1ukNx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YSta6+kMITWXNOsHU0BpT3JlUjVfW1JFZ3dqIQvvgsg7J5GEcC8xHstvCyOk X-MS-Office365-Filtering-Correlation-Id: 86d346c0-488b-4e8f-2613-08d5c0cb27b6 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2018 16:35:11.5248 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 86d346c0-488b-4e8f-2613-08d5c0cb27b6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB4184 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_flower.sh b/tools/testing/selftests/net/forwarding/mirror_gre_flower.sh index 2e54407..12914f4 100755 --- a/tools/testing/selftests/net/forwarding/mirror_gre_flower.sh +++ b/tools/testing/selftests/net/forwarding/mirror_gre_flower.sh @@ -67,6 +67,11 @@ test_span_gre_dir_acl() test_span_gre_dir_ips "$@" 192.0.2.3 192.0.2.4 } +fail_test_span_gre_dir_acl() +{ + fail_test_span_gre_dir_ips "$@" 192.0.2.3 192.0.2.4 +} + full_test_span_gre_dir_acl() { local tundev=$1; shift @@ -83,6 +88,9 @@ full_test_span_gre_dir_acl() "$forward_type" "$backward_type" mirror_uninstall $swp1 $direction + # Test lack of mirroring after ACL mirror is uninstalled. + fail_test_span_gre_dir_acl "$tundev" "$direction" + log_test "$direction $what ($tcflags)" }
Test that when flower-based mirror action is removed, mirroring stops. Signed-off-by: Petr Machata <petrm@mellanox.com> --- tools/testing/selftests/net/forwarding/mirror_gre_flower.sh | 8 ++++++++ 1 file changed, 8 insertions(+)