From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D1B9C2F3A0 for ; Mon, 21 Jan 2019 13:22:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DAF5C20870 for ; Mon, 21 Jan 2019 13:22:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Mellanox.com header.i=@Mellanox.com header.b="wQ7slk5G" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728912AbfAUNW4 (ORCPT ); Mon, 21 Jan 2019 08:22:56 -0500 Received: from mail-eopbgr60081.outbound.protection.outlook.com ([40.107.6.81]:48530 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728314AbfAUNWz (ORCPT ); Mon, 21 Jan 2019 08:22:55 -0500 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=tOAZ3dXH37jvoN3xuzVH5ffpk3MCGSnz9nJF74cN0uQ=; b=wQ7slk5GbeiuDdBx47buELrXYF985xo5MUW5m7qtgi1mABIqJ9UkQIeotRSXXZLu0hlSAMnYCLuKuaFPyDJd3YK82S2bjMQ2p/wsoOFtV8bnawC2W4UeUSWfcNzhJjU8qrlTZLMWQLYfgZDSYLV3fAwP26TVaT3gmEjpLKIgR6U= Received: from AM6PR05MB6056.eurprd05.prod.outlook.com (20.179.2.148) by AM6PR05MB5379.eurprd05.prod.outlook.com (20.177.117.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.29; Mon, 21 Jan 2019 13:22:51 +0000 Received: from AM6PR05MB6056.eurprd05.prod.outlook.com ([fe80::3411:612a:f48b:a5e2]) by AM6PR05MB6056.eurprd05.prod.outlook.com ([fe80::3411:612a:f48b:a5e2%5]) with mapi id 15.20.1537.031; Mon, 21 Jan 2019 13:22:51 +0000 From: Ido Schimmel To: "netdev@vger.kernel.org" CC: "davem@davemloft.net" , "roopa@cumulusnetworks.com" , mlxsw , Ido Schimmel Subject: [PATCH net-next 0/4] selftests: forwarding: Add tests for VXLAN routing Thread-Topic: [PATCH net-next 0/4] selftests: forwarding: Add tests for VXLAN routing Thread-Index: AQHUsYxoONL5lnoVbEWr1fEvpQHFhw== Date: Mon, 21 Jan 2019 13:22:51 +0000 Message-ID: <20190121132231.25507-1-idosch@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5PR0601CA0036.eurprd06.prod.outlook.com (2603:10a6:203:68::22) To AM6PR05MB6056.eurprd05.prod.outlook.com (2603:10a6:20b:ab::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=idosch@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.20.1 x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM6PR05MB5379;6:+pUujb4FVreKWMg2Xp0qpMPwRTCPcdBRU2ApQFUXOwxP6rvGaE41iT43g34MpzhfDpC6pBQ8Lzc/eVxH0KZKVCO71Cblf+ie2zCOPjG48eBoFwIpg+YoqCmtrEERUFts5KSr4CqeqKXB42nZs+ASN9OcuNHOi8WHfGDy5k1VEf1x+2ZcsILdrEwVUBAwrmcv0SnL6QCdw4J++JAErjmu+6lpesWlVAeBDz9eJe7hQDIEYyuTmj/UdIzLtTqVHMkae+0eggD6nc33lyPu8O97shupYDCCODNEhZNJtsHmUOz9qxQQf73Uyp9yPrdF0jmz88dXOfJyu358r9cfXlZKUJ4imwwu4EgkPNoUONfnpXyFDvTGUqCyM97JISrCOXnUepo4gwK8SIcbIqnNLYMjgs30vDQC7ll3v9RSEtq29p+8k9soR5aWhYV4K1fxHd2/fHqAfncELN7ZOAIVmTm18w==;5:+9AwIQLMbJftLhH5hwvZP0rsXzzzFk3kmBCeDO+4qT1C8PQGwT73A5IxD/kIypD8jYA3txhbY6KBEl+GuifsHAoZe0STJWBfF+Ckkr9p26tbzHP/K1BMm93Fo9hptBrT9K2qpygQSV5nZQZTXsKXfto0PbL3j5vVo/kMRuMf4c1B0Guvi1Fin/o32ON0EF/XkgXdBWZ8W3PKZ3gJTUYzyQ==;7:nlTBWv6CgruYEuqx6XFdMvfZgG6/C9FLjS/CcG8LWMQZPI5tSjmSinZlhj+WdUK+q7m184oMnPM0Kb4k9IjFJJtjYwrU8HGs+OCYDw9cJvVaiW0Kbyc0Fw3lHU4xUvAko1TRy83c/mO7jiHy4/BUiw== x-ms-office365-filtering-correlation-id: 704c58db-28f8-41b5-cd0f-08d67fa38b3e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM6PR05MB5379; x-ms-traffictypediagnostic: AM6PR05MB5379: x-microsoft-antispam-prvs: x-forefront-prvs: 0924C6A0D5 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(346002)(376002)(136003)(39860400002)(366004)(199004)(189003)(305945005)(486006)(1076003)(26005)(50226002)(6512007)(99286004)(8936002)(316002)(478600001)(53936002)(7736002)(186003)(476003)(52116002)(97736004)(6506007)(86362001)(54906003)(386003)(2616005)(81156014)(81166006)(2501003)(1730700003)(8676002)(2351001)(106356001)(102836004)(105586002)(68736007)(6916009)(71190400001)(2906002)(66066001)(5640700003)(107886003)(256004)(25786009)(3846002)(4326008)(14454004)(6436002)(36756003)(6116002)(6486002)(71200400001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR05MB5379;H:AM6PR05MB6056.eurprd05.prod.outlook.com;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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: hNnt+v8f6h3mQiQLoiDaxMRj/lslThHXGf0yotiOxPAX+nHMjqhYauQM2JRqLfAIJlprbEQdZoeF7NurLeq4mkZ7A7aBDuixTPifrpTNF8QqdNYHTKSUdcrJGcPpu3+4RLV2S1GKS1Hs3XGMbjpzTYWAnsfmkjsAxdPp8M6t8WiQ8I7ktVVMhqZtMQ+XMNyE0R3AdUj3xpX9znx7fFmQzoUxWRk/0ijrfhXSTnYh8T5GfyGS0TDSq+Vy6lE60WYRUBbRc0H81o81YBNMB33HFI3Pf/EZ80kboLsraSTXrffyCORRdu+0nPA4zPj4F5csJ9SqbnjZtopw/Jf+Ezvb/3RYkYlVL5hakh6epG9bAHKaObv1b5HZeIPOo0xXbwV4P5M9IEUNyeEztZpuF7+2/r/7688IirhV9ya4F4QjMWo= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 704c58db-28f8-41b5-cd0f-08d67fa38b3e X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jan 2019 13:22:50.7518 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB5379 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org VXLAN routing allows hosts in different overlay networks (i.e., different VNIs) to communicate with one another. Two popular routing models are asymmetric and symmetric routing. In asymmetric routing the ingress VTEP routes the packet into the correct VXLAN tunnel, whereas the egress VTEP only bridges the packet to the correct host. Therefore, packets in different directions use different VNIs - the target VNI. In symmetric routing both the ingress and egress VTEPs perform routing in the overlay network into / from the VXLAN tunnel. Packets in different directions use the same VNI - the L3 VNI. Different tenants (VRFs) use different L3 VNIs. Patch #1 adds a test for asymmetric routing. Patches #2-#3 reuse the topology and add test cases for ARP decapsulation and suppression. Patch #4 adds a test for symmetric routing. Ido Schimmel (4): selftests: forwarding: Add a test for VXLAN asymmetric routing selftests: forwarding: Add a test case for ARP decapsulation selftests: forwarding: Add a test case for ARP suppression selftests: forwarding: Add a test for VXLAN symmetric routing .../net/forwarding/vxlan_asymmetric.sh | 567 ++++++++++++++++++ .../net/forwarding/vxlan_symmetric.sh | 551 +++++++++++++++++ 2 files changed, 1118 insertions(+) create mode 100755 tools/testing/selftests/net/forwarding/vxlan_asymmetric= .sh create mode 100755 tools/testing/selftests/net/forwarding/vxlan_symmetric.= sh --=20 2.20.1