Message ID | 20190108164732.4024-12-idosch@mellanox.com |
---|---|
State | Accepted |
Delegated to: | David Miller |
Headers | show
Return-Path: <netdev-owner@vger.kernel.org> X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="mK5APMUI"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43Yys10Rrbz9sLw for <patchwork-incoming-netdev@ozlabs.org>; Wed, 9 Jan 2019 03:49:08 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728989AbfAHQtH (ORCPT <rfc822;patchwork-incoming-netdev@ozlabs.org>); Tue, 8 Jan 2019 11:49:07 -0500 Received: from mail-eopbgr50045.outbound.protection.outlook.com ([40.107.5.45]:53976 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727656AbfAHQtG (ORCPT <rfc822;netdev@vger.kernel.org>); Tue, 8 Jan 2019 11:49:06 -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=bGiyxz9Ccz1KEA4sJ01V326ABL+j90GwO2JB8k4Ztkk=; b=mK5APMUIksh+3IROtuDDeMh/6d0c5V+iOOTvHWi0hLe8ooAXhr5kiBNlK46rcYND5ef2SXa8gQ9C6w89fVJpmlZj5FODpqgdUpwpsqnTMbzQQP85+hRL7fwm1HvdvN4AeHCTAbZvXaKy+1MP2Ahy1RNuGH+dAI9JQF0/VQAoyIE= Received: from AM6PR05MB6056.eurprd05.prod.outlook.com (20.179.2.148) by AM6PR05MB4405.eurprd05.prod.outlook.com (52.135.163.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.6; Tue, 8 Jan 2019 16:48:14 +0000 Received: from AM6PR05MB6056.eurprd05.prod.outlook.com ([fe80::5490:e4ea:7798:e65f]) by AM6PR05MB6056.eurprd05.prod.outlook.com ([fe80::5490:e4ea:7798:e65f%3]) with mapi id 15.20.1516.010; Tue, 8 Jan 2019 16:48:14 +0000 From: Ido Schimmel <idosch@mellanox.com> To: "netdev@vger.kernel.org" <netdev@vger.kernel.org> CC: "davem@davemloft.net" <davem@davemloft.net>, Jiri Pirko <jiri@mellanox.com>, Petr Machata <petrm@mellanox.com>, Nir Dotan <nird@mellanox.com>, mlxsw <mlxsw@mellanox.com>, Ido Schimmel <idosch@mellanox.com> Subject: [PATCH net 11/11] selftests: forwarding: Add a test for VLAN deletion Thread-Topic: [PATCH net 11/11] selftests: forwarding: Add a test for VLAN deletion Thread-Index: AQHUp3HysPTBoSAkc02ShEc/XlRPWQ== Date: Tue, 8 Jan 2019 16:48:14 +0000 Message-ID: <20190108164732.4024-12-idosch@mellanox.com> References: <20190108164732.4024-1-idosch@mellanox.com> In-Reply-To: <20190108164732.4024-1-idosch@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM6P192CA0024.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:83::37) 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; AM6PR05MB4405; 6:0p+qwT3LHMvqKcMAtZVavkDwJVhtm+TnKE9uZSu38PqiowEfeJzmKcm1BDWxcip+a0okIgaQ8bqALmfpKOHWwdZ0E3AGYFeIF2gxTEW+oFxRvzRUNn2eDwUcJo84HNsMH0xY68EsMyOhsitE/j14EQeDl0MiX+ofTYwVxZH1szhQm1FXHtwwtxnENjDFVHkARunfL1ObYHAwvGTZUsC0K271RcUjK9E2JVy0k4N0Xdi648zO04NmmiU4j/MmTTd82EZKNxhlKPuyAq1NqyxN2SQDTNkMdpWRUEkcFLbKIQQfCj1KDwdWs/VEPIRPqy+3ZgxfPBsI/ky6r0YPSK+fmRJYXtKmq51ym5jE0kgvjyz00qt90T7pLaj5H5nk/i6IdutHjgfYt6o8E5134YFkrXf9oYP6irC3eBicYF8iwzEmJWKioiDvX21AtjN8j7WkT/vtyLYCm27/9wT0YY5NeQ==; 5:eLOXgczeirga8PTdUNtPI2TSneqoKuD3WzmpnZA9yQ1IcTr8dcE3ldHgRwS3ydjrJ+gGGy0RKENJmFwZAI03gg1hvhlOH/s9UBhdhouO7/s3trCb0AV7K05InLzdzxNawluI0SpKc2UPbiSeN6EV27awF7e5VyY8gwXaqYyoWDivlJi2kNcfDvi2T5iFPmAVH0FKuutPkMrB4L2YA6PeSQ==; 7:97lXu3wASC9z9IdFmjOFnYgL21db5n1OrC4Vw0NOfG9Qz4EQj2wZluvGWCVmEgN2sciY3+5KS7lT35p3voAeYsONF2f4ZzjOImMYXwGqOWJowlaFIgnjgMufQ8E6VcvD/mS5WwVk3FuENPXElt5ufQ== x-ms-office365-filtering-correlation-id: 90b89b50-bae6-49e2-5943-08d6758914f6 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:AM6PR05MB4405; x-ms-traffictypediagnostic: AM6PR05MB4405: x-microsoft-antispam-prvs: <AM6PR05MB440544B44565CE08BBE2E2B7BF8A0@AM6PR05MB4405.eurprd05.prod.outlook.com> x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(8220060)(2401047)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231475)(944501520)(52105112)(6055026)(6041310)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:AM6PR05MB4405; BCL:0; PCL:0; RULEID:; SRVR:AM6PR05MB4405; x-forefront-prvs: 0911D5CE78 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(136003)(39860400002)(396003)(366004)(189003)(199004)(106356001)(105586002)(2906002)(6486002)(6116002)(3846002)(99286004)(6506007)(305945005)(486006)(7736002)(102836004)(386003)(76176011)(86362001)(52116002)(26005)(66066001)(5640700003)(6436002)(186003)(97736004)(2501003)(6512007)(2351001)(25786009)(1076003)(478600001)(81156014)(8936002)(36756003)(81166006)(68736007)(4326008)(50226002)(5660300001)(14444005)(256004)(1730700003)(107886003)(8676002)(6916009)(53936002)(54906003)(316002)(11346002)(14454004)(2616005)(71200400001)(71190400001)(476003)(446003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR05MB4405; H:AM6PR05MB6056.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: 4DvwW9jlgj5ruNeI3wp/SL8/sYOuscYGaBLJvSQdJZ1CEpgcEBSqdFuVIqrW0AXx99hOfpsF4vatw66XH7xaKpa2HoKeTxbshRenRIZhIJmcOaMUsok+7+eu3gsgxnXOQLypnwcZLQM5cO7CKzZm+WSPJYv8UoAzLbIsGs4x2GfOHmlGwOOAiDhaFL5vAYcPQnkXwJ6goUK6EAL7ZI9XT8X+pHiyCfmd7ldTCaFsajeZKx88BqDpaTk/fY1CTGMAFUG988xlPKTJb1BK/nMtrrDyk5r/asPI0G0KC0O2/0e2zQFwIl8IdJbin+3HHAAB 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: 90b89b50-bae6-49e2-5943-08d6758914f6 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jan 2019 16:48:13.6608 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB4405 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
mlxsw: Various fixes
|
expand
|
diff --git a/tools/testing/selftests/net/forwarding/bridge_vlan_aware.sh b/tools/testing/selftests/net/forwarding/bridge_vlan_aware.sh index d8313d0438b7..04c6431b2bd8 100755 --- a/tools/testing/selftests/net/forwarding/bridge_vlan_aware.sh +++ b/tools/testing/selftests/net/forwarding/bridge_vlan_aware.sh @@ -1,7 +1,7 @@ #!/bin/bash # SPDX-License-Identifier: GPL-2.0 -ALL_TESTS="ping_ipv4 ping_ipv6 learning flooding" +ALL_TESTS="ping_ipv4 ping_ipv6 learning flooding vlan_deletion" NUM_NETIFS=4 CHECK_TC="yes" source lib.sh @@ -96,6 +96,19 @@ flooding() flood_test $swp2 $h1 $h2 } +vlan_deletion() +{ + # Test that the deletion of a VLAN on a bridge port does not affect + # the PVID VLAN + log_info "Add and delete a VLAN on bridge port $swp1" + + bridge vlan add vid 10 dev $swp1 + bridge vlan del vid 10 dev $swp1 + + ping_ipv4 + ping_ipv6 +} + trap cleanup EXIT setup_prepare
Add a VLAN on a bridge port, delete it and make sure the PVID VLAN is not affected. Signed-off-by: Ido Schimmel <idosch@mellanox.com> --- .../selftests/net/forwarding/bridge_vlan_aware.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)