Message ID | 20181119161006.5405-14-idosch@mellanox.com (mailing list archive) |
---|---|
State | Accepted |
Commit | d417ecf533fe014de667705f58ae5c579f7740b9 |
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-2.web.codeaurora.org (Postfix) with ESMTP id 80B4C6C5 for <patchwork-linux-kselftest@patchwork.kernel.org>; Mon, 19 Nov 2018 16:11:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 718C92A0F8 for <patchwork-linux-kselftest@patchwork.kernel.org>; Mon, 19 Nov 2018 16:11:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65E112A0FE; Mon, 19 Nov 2018 16:11:37 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 042712A0F8 for <patchwork-linux-kselftest@patchwork.kernel.org>; Mon, 19 Nov 2018 16:11:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730040AbeKTCfg (ORCPT <rfc822;patchwork-linux-kselftest@patchwork.kernel.org>); Mon, 19 Nov 2018 21:35:36 -0500 Received: from mail-eopbgr10068.outbound.protection.outlook.com ([40.107.1.68]:28374 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729957AbeKTCfg (ORCPT <rfc822;linux-kselftest@vger.kernel.org>); Mon, 19 Nov 2018 21:35:36 -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=IVnG2YyhSCUuBmaMeEfO4dRrwM0O1dk1YDyXRLyO0ro=; b=mWCPnwCCIYASBXiNM8gMvIWWkCfBjSmIYZ2BySJivNGqoK545j6LK6/S41syw3VaxDBP9UDIb4KpFLT+BJW0SymgF77Mo3PwX8X2G4C8Xu03k81nxQPpEbjdg9CbCe5PTGpTY0fH86YnVUif7/OMBXp1z/PrqmQEC9EMoxT6g0g= Received: from AM0PR05MB4978.eurprd05.prod.outlook.com (20.177.42.95) by AM0PR05MB4899.eurprd05.prod.outlook.com (20.177.41.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.35; Mon, 19 Nov 2018 16:11:21 +0000 Received: from AM0PR05MB4978.eurprd05.prod.outlook.com ([fe80::f953:cde4:ff8d:501a]) by AM0PR05MB4978.eurprd05.prod.outlook.com ([fe80::f953:cde4:ff8d:501a%4]) with mapi id 15.20.1339.026; Mon, 19 Nov 2018 16:11:21 +0000 From: Ido Schimmel <idosch@mellanox.com> To: "netdev@vger.kernel.org" <netdev@vger.kernel.org>, "linux-kselftest@vger.kernel.org" <linux-kselftest@vger.kernel.org> CC: "davem@davemloft.net" <davem@davemloft.net>, "shuah@kernel.org" <shuah@kernel.org>, Jiri Pirko <jiri@mellanox.com>, Petr Machata <petrm@mellanox.com>, "roopa@cumulusnetworks.com" <roopa@cumulusnetworks.com>, mlxsw <mlxsw@mellanox.com>, Ido Schimmel <idosch@mellanox.com> Subject: [PATCH net-next 13/18] selftests: forwarding: vxlan_bridge_1d: Add a TOS test Thread-Topic: [PATCH net-next 13/18] selftests: forwarding: vxlan_bridge_1d: Add a TOS test Thread-Index: AQHUgCKDMWKK0E8Uv0KdmWkbm0ZNkw== Date: Mon, 19 Nov 2018 16:11:21 +0000 Message-ID: <20181119161006.5405-14-idosch@mellanox.com> References: <20181119161006.5405-1-idosch@mellanox.com> In-Reply-To: <20181119161006.5405-1-idosch@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5PR0601CA0031.eurprd06.prod.outlook.com (2603:10a6:203:68::17) To AM0PR05MB4978.eurprd05.prod.outlook.com (2603:10a6:208:d0::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=idosch@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR05MB4899;6:nGc65D38UT4+CePJdyrVN+hJTQtG1xDYpQuEoaRvks8oUU6EoZkiTUxzfKxF1YJpPM3+52+tt1CpD1Jwq9xTZwPxCmDN0wSX01OltjG+8h244woMXv5Eb99SwdteyMn5I/srG7/4mYSZZkV6Qe4rQ0PDxlL/a5OG30MMIhj5htyAFR9qQdI0JQ1DCOKAfXym6h8WLNBqRHbZtBdUs6SuxJdHYcs1KDG/LaQ26rBoXJ23+SkALZ47k29KOOMHLOZAFd1sh7vsE2McvlLjpudzpHT6K19nroiIC6iUHJ2ONt1HrUe0qC7fbKhhX+E1clbrAtT16M2k3o/Kltmnqmc0uxn6k97/bjVNPBPKFaU5giVsZeWnPlodWX03XBFvEyt9MjWISUk8uQDMekJaKUQ+cdhF76TpyZj1yu8j1G2PHXOo+RGD522pUF9OjkW4mISdWjGQetzNZ5aiSHKwhpLy9A==;5:fxDbhUNrwtL1m1BeIXHmJB0iLK95LftUytyu7UMqlnhpDln59hafX8DlnvzbRY3Y7F157LmxCLVwYFwG0nk9vDB56Zu7JebxgvUkiuSYO2tnnmRQwWSetoQszSncGvcdJTmdOlmbXZdhvUuKGgeawhBctlqvKRtkVEur9+bmv9s=;7:siBHPT1WVJiCBd+/9xVjiodXRWciP5TZOJRK052743z+ZtEMDWIrOHD8zlqWTgRQTaG4AuHCPMiIjAK2NG+ZugiYXJ6FGXg0i923wqmqmATyFo7JUorFH6D6tOxB7sGOtaBhsalgRbYORqzRwUehQQ== x-ms-office365-filtering-correlation-id: e936840e-951f-420d-2053-08d64e39a569 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:AM0PR05MB4899; x-ms-traffictypediagnostic: AM0PR05MB4899: x-microsoft-antispam-prvs: <AM0PR05MB4899F0025150DC89A631859CBFD80@AM0PR05MB4899.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)(3231415)(944501410)(52105112)(3002001)(10201501046)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:AM0PR05MB4899;BCL:0;PCL:0;RULEID:;SRVR:AM0PR05MB4899; x-forefront-prvs: 08617F610C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(39860400002)(346002)(366004)(136003)(396003)(199004)(189003)(8676002)(386003)(68736007)(26005)(14454004)(36756003)(8936002)(1076002)(102836004)(3846002)(6116002)(6506007)(4326008)(186003)(81166006)(81156014)(52116002)(25786009)(11346002)(110136005)(316002)(478600001)(54906003)(76176011)(2906002)(6512007)(107886003)(53936002)(99286004)(2616005)(2501003)(7736002)(575784001)(86362001)(446003)(66066001)(6436002)(476003)(5660300001)(305945005)(106356001)(256004)(105586002)(6486002)(97736004)(71200400001)(486006)(71190400001)(2900100001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR05MB4899;H:AM0PR05MB4978.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-microsoft-antispam-message-info: l+wlmatX3YazraLaqLvOnLDuggvfaJ+Z0zux0tCW2KxyH97S14AwEWKMrm7Df6rw+Hxv92JllUnjcpGFhkmCkkCLzRsyWbvny9mMF72DPU4MfCjhQp67D5PPiY/njgjHd/2kinzdPD35tZbQKgcHqxIyxuYA+rNj1D0IlX1gbdO89d2jpezZ2GWfjGRnSAAtoe64IEjzEPO3DHYu28bWS6dhrTi2lTUz+OdLNXSq/xMtYCrGlHVq7qHk5gbiLWwhvsczbGgSD0B2FwQg6EWHp/+klVxQnNS4GIkFX+7K57zvkLXn4RxnDk2GrAHtWZBIMB+qNbQU2ZVaWexaafZosOlBuOmaRADSmSok7PHcFEc= 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: e936840e-951f-420d-2053-08d64e39a569 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Nov 2018 16:11:21.7728 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4899 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 |
Series |
selftests: Add tests for VXLAN at an 802.1d bridge
|
expand
|
diff --git a/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh b/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh index 0c17b0d427ba..ac1070937ae7 100755 --- a/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh +++ b/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh @@ -69,6 +69,7 @@ export VXPORT test_flood test_unicast test_ttl + test_tos reapply_config ping_ipv4 test_flood @@ -507,6 +508,19 @@ test_ttl() log_test "VXLAN: envelope TTL" } +test_tos() +{ + RET=0 + + tc filter add dev v1 egress pref 77 prot ip \ + flower ip_tos 0x40 action pass + vxlan_ping_test $h1 192.0.2.3 "-Q 0x40" v1 egress 77 10 + vxlan_ping_test $h1 192.0.2.3 "-Q 0x30" v1 egress 77 0 + tc filter del dev v1 egress pref 77 prot ip + + log_test "VXLAN: envelope TOS inheritance" +} + test_all() { echo "Running tests with UDP port $VXPORT"