Message ID | 799b7c363704a0b46e803a27d933d92c750796d5.1529511789.git.petrm@mellanox.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Ido Schimmel |
Headers | show
Return-Path: <linux-mlxsw-bounces+patchwork-linux-mlxsw=patchwork.kernel.org@lists.ozlabs.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 2F32960230 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Wed, 20 Jun 2018 16:30:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E8B628A1A for <patchwork-linux-mlxsw@patchwork.kernel.org>; Wed, 20 Jun 2018 16:30:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 11F9928DFB; Wed, 20 Jun 2018 16:30:43 +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=-2.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, MAILING_LIST_MULTI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5701F28A1A for <patchwork-linux-mlxsw@patchwork.kernel.org>; Wed, 20 Jun 2018 16:30:42 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 419r0v6cMtzF0lh for <patchwork-linux-mlxsw@patchwork.kernel.org>; Thu, 21 Jun 2018 02:30:39 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="nBTFtuQt"; dkim-atps=neutral X-Original-To: linux-mlxsw@lists.ozlabs.org Delivered-To: linux-mlxsw@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=mellanox.com (client-ip=40.107.8.84; helo=eur04-vi1-obe.outbound.protection.outlook.com; envelope-from=petrm@mellanox.com; receiver=<UNKNOWN>) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="nBTFtuQt"; dkim-atps=neutral Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80084.outbound.protection.outlook.com [40.107.8.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 419r0g5Pd9zF0lh for <linux-mlxsw@lists.ozlabs.org>; Thu, 21 Jun 2018 02:30:26 +1000 (AEST) 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=imZoasPK27XCqSbbSlTLaFi26PoM+9RTsYaTionvkq0=; b=nBTFtuQttWD2KAnQjv2HAZSPMcjT1OswZncWEWpiKdCZHSaNYoVqbUdtsPOYy7btyOa/DyHyYBRiC2P++B8RTOXiwEvkePYydtSdt+4gnC0lFnrjoI5Q4Jd8TfG8RxmzoQtdZgqEUjdBgqsThoskoXDsWUC90ECn5IMOOi4oKNo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=petrm@mellanox.com; Received: from t540p (78.45.160.211) by VI1PR05MB4189.eurprd05.prod.outlook.com (2603:10a6:803:4e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Wed, 20 Jun 2018 16:30:17 +0000 From: Petr Machata <petrm@mellanox.com> To: <linux-internal@mellanox.com> Subject: [PATCH net-next mlxsw] testing: mirror_gre_vlan_bridge_1q.sh: Unset rp_filter Message-Id: <799b7c363704a0b46e803a27d933d92c750796d5.1529511789.git.petrm@mellanox.com> Date: Wed, 20 Jun 2018 18:30:13 +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: LO2P265CA0066.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:60::30) To VI1PR05MB4189.eurprd05.prod.outlook.com (2603:10a6:803:4e::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 78e481bc-448e-49d0-e9c1-08d5d6cb1c33 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:VI1PR05MB4189; X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB4189; 3:vJVH3Dic/xl2ZJzhxenAm5F0QH9L9UoL3oNxH8nQCzUEP7A21g6YbI8iQmplxngNeWKq6roJSp2SOkgTJGFSa4db9uDPMMidvCRLQswzTz5ZqlLQsI7AMSIqihlDJhjbWRJABK/3m16BPyErE9ObceVXyUEE53lTxFYP8PU5SG2nC8Hm/MbdsEmnOpVVypXfu/frMC2Q9qPnNzugV/CQjXNQTpK62ubWQMoCtma0fae83CKNp6wIE0dwKt5YHpNM; 25:3aT3YVTTrOeO0vqXQj9BVMgqtjfE96Lobg9uoisU2rMRcqCD9L0iBgg/rLn00lmlkKW+j19wL1+AHvKoAo90zrvxPgT6H/braqwmPSkFaG319h/eDughQo/KGiV2InBHnlcz9lWPvbvQxcUj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20+9paV0xdA6Xje6bliViILT+4odrLFuianO7rLJOEmdPU19rlk1J/lEvBVPkeboaVH4L762FwCUAGcZCZng06lZfkzL936Bx1ocSxnlkAiRGgVAUnQLEQwlhV5MkBsaQ0da7b56oKE6oSz+/kgVRO6SK9GhcPX0sUPQ+65ShZbk1/QizAjJj+OuMj4d5yfv345au1CO0B/wtDu8CEtbtNV4hVZwD7eFawQ== X-Microsoft-Antispam-PRVS: <VI1PR05MB4189760333363623AA1E127EDB770@VI1PR05MB4189.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)(8121501046)(5005006)(10201501046)(3231254)(944501410)(52105095)(3002001)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:VI1PR05MB4189; BCL:0; PCL:0; RULEID:; SRVR:VI1PR05MB4189; X-Forefront-PRVS: 070912876F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(39860400002)(396003)(346002)(376002)(366004)(199004)(189003)(47776003)(97736004)(5660300001)(6116002)(50466002)(3846002)(186003)(48376002)(16526019)(51416003)(6636002)(6496006)(52116002)(6666003)(305945005)(66066001)(2906002)(486006)(118296001)(8936002)(7736002)(478600001)(16586007)(476003)(956004)(2616005)(26005)(59450400001)(386003)(8676002)(37006003)(316002)(2351001)(105586002)(81156014)(36756003)(58126008)(81166006)(15760500003)(86362001)(575784001)(6862004)(53936002)(6486002)(25786009)(68736007)(106356001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB4189; 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; VI1PR05MB4189; 23:REAyOaEhD0M7TB+tlphT/+urytxV7SULrY14dgFe/?= =?us-ascii?Q?pWRecQV88v4ZS9zBJNoz+6JChM/rFg1NMKVcjCIhfMGlJmwjnAmo+JG+yZqT?= =?us-ascii?Q?toVw5NGCvj9CplLT10RQVbJNkYnfIw8EI5QufZ8xvf3sL+4DT3EqU57dXwut?= =?us-ascii?Q?huOEA4fZyP5FmJJxod93PVC/DM7LyvQTu+09+mxWFwNPgQ3CkIAXdePse3LC?= =?us-ascii?Q?CAj5RY+JeBVIc5G1O3ffa91QDSys72ZlgEIgTLbc58EM1qS5lvCPz1utCq/b?= =?us-ascii?Q?qmbT2nMi26UoaO1onYT3Jm9uzA/Bb/B5m9/VbS0Kv1l0SWc4Ta3yVi4AkIBC?= =?us-ascii?Q?esj7v9t3lczXeMhhwErYQZ4D029gwFvQmr/EQY3v/xdlzetPWGNdEm2agkj0?= =?us-ascii?Q?A/Wu6pW+fnciydBivkdueEW7RHfqys2ZFcTX05WF6Acd3USIRqpvrkBvWhCK?= =?us-ascii?Q?wWF5dI9mWxfOpm+IkgMKd52PilIJBXAbd0DAudv6tS6Tn5bviO953OF+lBhf?= =?us-ascii?Q?ZFpaXA7MNSOxe9kbSnku6EwSTNI8aaA4os66ylGOlqNOJasdyVuFjMqF7suH?= =?us-ascii?Q?IO3Dgzq4OVDoNDXiSxYk448Z62YiQfpHpHRNaKgZg2iffFYiWHE+WX38sG7h?= =?us-ascii?Q?bX60/zE3+UUv4ZBXXsmQk6MTA8CHGgESA5eZApq6frir+WbYzSTM9R2ByykB?= =?us-ascii?Q?40yvwSzbXcxyNIIXelL+0fWnE9f5mq6aWoqD6RpU7Ip+9XQ6fqbVnZWhnLWs?= =?us-ascii?Q?DogTXKRuyvsiqJQxaq2gQEmwQXg8PfvWSyVoaAGDoHH43+sugpiP3yvQthJh?= =?us-ascii?Q?E3waAF0NKb0LL6aO/v/vZBgMtDRklyqJjycdWe21LBpUgxCz7xeFeSq/pgwB?= =?us-ascii?Q?pVDNp3XOXFULjLun08nV7ItI3GzJHI1kOwaojpQ7Y9giDoOkmVTzTHdaUxtu?= =?us-ascii?Q?PBvHJRlPitNTOvW2XcjLh9pL9tscPQBdwLhipWvEGJEbvVM15L0M1qV8nusG?= =?us-ascii?Q?EYJTN3EOwBjji2FYPKUKazxY3uwsE4ly/B2NGdfXOffTfKShug9lfIBcMxxO?= =?us-ascii?Q?MHbiUQwKg4Q9mkbnCE6KraK/9qiluPv7snjSOfgbvvo1HHKDGXmwpF7seKNv?= =?us-ascii?Q?eoEOV52YbODdCoEYtBLF8vCt7Ji6G/x4mXBnWcnpYeRk+z7eVnxrMS5ZOsvw?= =?us-ascii?Q?9OViguLrpqgNCs+6TgBCbZLWNC/hDkRtkaF/1WpU+WwsxKL9B2GLKULSeKLh?= =?us-ascii?Q?YS6TsiE7AGoWLko+bs=3D?= X-Microsoft-Antispam-Message-Info: bR/frxoUcvRNzwal54FxRzMpPOWzpeH3Tnwsd+AdFNpQ9uQJNz4tNInPpWnvjLd3sIgvdBLvnneEDEca5aLailXa7bF7vIJIB9AHys6/uhVagB/5bFf0EKcxG+aa1l2aMAXk58DtKWg7GwzDCZeqmWg9S+W/ONiljdgDRXd9A9oTKLW8phQrM7E/Qfz4LtJGSG23aE6CTERM5AvcvfcDHc1ffazTaGDFqdUJPjeOEWTEGKJSQO9hIRwmVVLvMm+4//H4VLWle8vLBemQDAcg5LBmBTWK/bZcugdxHVk6DvJfmuKHtP728wgqpzhXC+Xe X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB4189; 6:vok5qYs6nOFZvLGIbnOE5u0sepaOF9xWy7MtgvK+Qmzz5hFSARB7j3scmgEe5zwyqSdKmquy5v/wHiGdNUvDWfiHrw89xCVkb6kCqqxzQ+ymuD+XZlTSLECOUbZtj2DXmWkgfFjRGWwesY2KhTBr1k9A34EXB89I6wznAmJfRLjwfs7d1l3GOYFfXP2/bMu+15jUPaygG06gp74UBfO0Hr4++VEou+8jC4Ezoe0xNeZ+YO7wyvtJyMoZH98pZbEkiXB8Kab6xvsgbKcaTzMCzMU3eOE8u2tykt4HraJiDiPcwZZhwefTemFIFoENg1fPCIZytuhPTKhn//vZxjulls6Wt+cCgo1r4jrHz35dk686Hlvad2mAiYHaDss8yo75Dhc0A5cxuDEtNv2bMDBuu0FPUZku0RFtKXeKEoEVR8qRzZrhAss2QxONegd0brc2JRejG3LMtTrrx7bv3pEsbw==; 5:U7zpRRN3dtahmfei9pupJAyKm9M4WFQv5FkFToPSrsCcyqLNCH1PuPEAbrGgzX7FoC0nHKuBFpDA1OK/tzqQmRagXrfNKHY9ghBg1T+KhyutZAEUbPaDNzLxlIqHBrg6p+zebC5Z8pfKEUxi8b/h8y06p7PofSStQaaQAyluh9Y=; 24:ZaCmG5tnZU286Q4izbCSeKJepN24dhU39cj4HDMGwGKoBohG3m8FDpPZc3iY7qNid19L1koPZFclbThkyKPLej+wXhT9t7y6Ruvf7o2b4zo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB4189; 7:fnV4PBrWiRpdJ0T5wbEcXlINQ51grcPX+B1jCcGe0ZABch6eM0S+E7ts34k3zMdddjnkswhrfs3hL8x3Ropp3FJfflSHxX4SQFQn3wlmi+Tdjcg22rBOAzqYjPzV1M5oplYUUu8STsXntigoeFCJd4uKnUjE+VlBDePnIMxtgszDK7ljI3eGOvlAEu/Ibh0e0uJfXVxWeo9xI6zEbJWLJ7TGdxH3Ejs830EXqu9OJfvTHwZLA5BYDPLK9m1Xm/wV X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2018 16:30:17.9800 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 78e481bc-448e-49d0-e9c1-08d5d6cb1c33 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB4189 X-BeenThere: linux-mlxsw@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: mlxsw driver development <linux-mlxsw.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/linux-mlxsw>, <mailto:linux-mlxsw-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/linux-mlxsw/> List-Post: <mailto:linux-mlxsw@lists.ozlabs.org> List-Help: <mailto:linux-mlxsw-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/linux-mlxsw>, <mailto:linux-mlxsw-request@lists.ozlabs.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: linux-mlxsw-bounces+patchwork-linux-mlxsw=patchwork.kernel.org@lists.ozlabs.org X-Virus-Scanned: ClamAV using ClamSMTP |
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 c7672b89f63b..15848fe1ac0a 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 @@ -41,6 +41,12 @@ setup_prepare() swp3=${NETIFS[p5]} h3=${NETIFS[p6]} + # gt4's remote address is at $h3.555, not $h3. Thus the packets arriving + # directly to $h3 for test_gretap_untagged_egress() are rejected by + # rp_filter and the test spuriously fails. + sysctl_set net.ipv4.conf.all.rp_filter 0 + sysctl_set net.ipv4.conf.$h3.rp_filter 0 + vrf_prepare mirror_gre_topo_create @@ -67,6 +73,9 @@ cleanup() mirror_gre_topo_destroy vrf_cleanup + + sysctl_restore net.ipv4.conf.$h3.rp_filter + sysctl_restore net.ipv4.conf.all.rp_filter } test_vlan_match()
The IP addresses of tunnel endpoint at H3 are set at the VLAN device $h3.555. Therefore when test_gretap_untagged_egress() sets vlan 555 to egress untagged at $swp3, $h3's rp_filter rejects these packets. The test then spuriously fails. Therefore turn off net.ipv4.conf.{all, $h3}.rp_filter. Fixes: 9c7c8a82442c ("selftests: forwarding: mirror_gre_vlan_bridge_1q: Add more tests") Signed-off-by: Petr Machata <petrm@mellanox.com> --- .../selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh | 9 +++++++++ 1 file changed, 9 insertions(+)