Message ID | d0e3dae72cb97487fdc9d5ab10a3136d0e73cd85.1527806682.git.petrm@mellanox.com (mailing list archive) |
---|---|
State | Accepted |
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 10039602BF for <patchwork-linux-mlxsw@patchwork.kernel.org>; Thu, 31 May 2018 23:30:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B25028DC6 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Thu, 31 May 2018 23:30:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F31E128E8B; Thu, 31 May 2018 23:30:27 +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 51D1728DC6 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Thu, 31 May 2018 23:30:27 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40xkGT3wHqzDrZD for <patchwork-linux-mlxsw@patchwork.kernel.org>; Fri, 1 Jun 2018 09:30:25 +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="Efe1vBhi"; 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=104.47.0.73; helo=eur01-he1-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="Efe1vBhi"; dkim-atps=neutral Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0073.outbound.protection.outlook.com [104.47.0.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40xkGM6064zDrZD for <linux-mlxsw@lists.ozlabs.org>; Fri, 1 Jun 2018 09:30:19 +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=hKB/mxt3OBxUP7qGUsTILmGh2TzS8FTD+Mf9oLbTLsU=; b=Efe1vBhi2M+yF/Q9gWbZhwkNtSGjs5dnpAU/UKzQfcuWsHRAnLliIeeSZPO3cNMoX/q1Z8JOmwG4NV0qWirifrbuFcVUdrqtOKoiAjVxUtj/+/H0/XKt2OgCiR+okA7k6+UwRLGyzsWsfuATzxQDJiZveWcgvfTbYLxJKISWBw0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=petrm@mellanox.com; Received: from t540p (89.176.83.59) by AM6PR05MB4183.eurprd05.prod.outlook.com (2603:10a6:209:40::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.797.11; Thu, 31 May 2018 23:30:13 +0000 From: Petr Machata <petrm@mellanox.com> To: <linux-internal@mellanox.com> Subject: [PATCH net-next mlxsw 1/2] mlxsw: spectrum_switchdev: Postpone respin on object deletion In-Reply-To: <cover.1527806682.git.petrm@mellanox.com> References: <cover.1527806682.git.petrm@mellanox.com> Message-Id: <d0e3dae72cb97487fdc9d5ab10a3136d0e73cd85.1527806682.git.petrm@mellanox.com> Date: Fri, 01 Jun 2018 01:29:47 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 X-Originating-IP: [89.176.83.59] X-ClientProxiedBy: CWLP265CA0264.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:25::36) To AM6PR05MB4183.eurprd05.prod.outlook.com (2603:10a6:209:40::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM6PR05MB4183; X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4183; 3:LPutGEDReCID+c+WSpnP96vPgbnqR57ibCKegSzxm92sCqD4B4HVyEZCCWTE8INlTy4PiFG5LuC9J78N7HV28LpzLk9pjmdmrgU4sF1tzAtOXAFwFf8ifw276reczg4hksJ5OP5TVDB/0hJL85cWDR9KK9a3ojg8cS6DCNsLoS0kfiDoE/Gt8pZDwd3JfEbl66sKYQ/dDPMwNlN9rtYOlcnf7P8qmrj2VPOlLONjyxdCCM9OeU3aFGbdpiNBniCR; 25:WzRzYIJcVCe5B/wrNDyzQw+6P+QYjiHCeXiFuR/vlKUAAeoLrYxRAgv8hD3UqmPmOFtsL4PtYjL3IRzGZ59knj4yicfFOZbdeQaPxkIbIqPFyu9hXP3QEu/zseF0GLKX3+iwej+Nu1k+MTk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PSTjw0wYYHPHCVjJUqSPfJa2QoQPa3Nf67i9t3E1xJ9zvWnfxXXPEhg+h6IHVxMAUKTu+GPj9z1M7DsLJ2q+RhAOd9itxbTTmwKYcBuPD4L+qavbh6UVBdihXwFMCZKdBPlZMpPCWHaCL209yZtSm+b4IpwaKpdf2re+eO2PjBuUy0nsvICbCsaKwTgeBu7+ZpkEM2VYMvZZNH8r1SZLZh0WOCg== X-Microsoft-Antispam-PRVS: <AM6PR05MB4183EC8DE22051F76E9AD4D2DB630@AM6PR05MB4183.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)(3231254)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:AM6PR05MB4183; BCL:0; PCL:0; RULEID:; SRVR:AM6PR05MB4183; X-Forefront-PRVS: 06891E23FB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39380400002)(39860400002)(396003)(346002)(376002)(189003)(199004)(11346002)(6486002)(37006003)(486006)(52116002)(51416003)(476003)(2616005)(956004)(16586007)(6116002)(8676002)(81156014)(305945005)(81166006)(26005)(59450400001)(316002)(186003)(3846002)(58126008)(6496006)(52396003)(66066001)(8936002)(6862004)(16526019)(68736007)(5660300001)(105586002)(53936002)(478600001)(50466002)(25786009)(7736002)(47776003)(97736004)(118296001)(36756003)(86362001)(106356001)(76176011)(386003)(6636002)(2351001)(6666003)(446003)(2906002)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR05MB4183; H:t540p; 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-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM6PR05MB4183; 23:5mU3une23SAeXSJCC4ZGc2YwXoThRGafTfWAbYrMX?= =?us-ascii?Q?ZUM4QDRVyk1XBDtcePwHNBh/0phPIbFE+fyPsP9FSEyKSqESZ4H3/fDzxbEs?= =?us-ascii?Q?7xorAZYvAVRyULxr4E1c0M2QmPtdzwGBNqzHb+/2y/QUMfXepiDpbCuOfzKp?= =?us-ascii?Q?xQw82JoFR7PsQFI3QX8KdHZHoJLVFAemN+Tc4Hkv96Y0ZyDhIkF1fd5hfSM3?= =?us-ascii?Q?9lobaDfe0KJA0Zbmp54DA6CVMlMaaXarP0/x8MUytkm3IwhIcExeCC+VX2bJ?= =?us-ascii?Q?bD0JKodAkjrnBM11L0UDTXP2ngvUjNxMXJhgfznUuvH8q6wJY3zeggMHdMan?= =?us-ascii?Q?iW+bX1AIUr2h65xJJf1tpjkFz3+72DY4Ll5UwbtMtHB2La8+4n40Ne6OPFUz?= =?us-ascii?Q?QRSz8+PTsS86gFoqcd2gwH+pxHUKSP+4RL00/EmdeSlIfDpCopvNhk3OhUTc?= =?us-ascii?Q?20iS8dLeJcsuUFVvb0LmmFNzINbLpYsuiu3kNEXgD48jiVhTVaYQhRnGLYLs?= =?us-ascii?Q?cO1PvjLAEXhV0ABAcIa9hF8XkmtTnDyvb28iI0OEGdHAvpqeBEpOKM4Okitk?= =?us-ascii?Q?UZNhT9L2ehKPLVqJW7hm2y8fnfWb7xrUdc9xFJLqklV8iRWAFlkwLukaVgln?= =?us-ascii?Q?CjABVNaOCWjODudBeljA/AY7pWWpjZlxf3ka37U1i4L/eEqBHwyGr7qAn717?= =?us-ascii?Q?A+FiBaxbcgyNTXf0rTV8iE9ILxaSFiGuVhCdmJ8NLnKK1T7ofhmIWnf6wEA4?= =?us-ascii?Q?Uivx4iXc4s/zAPjv4bWgJld7G0AnJBOUtwfU4W2tZ+p8RLj9VKBqc99u9B3w?= =?us-ascii?Q?+/27JNcXjcxOBAuvzesUoRivqvgOs3n6/+BOpziROD3DtY/Dy3V4G1DxQ964?= =?us-ascii?Q?S/x0kWiQONKEBCNQAa+B3lcV3jnRTfESSz2dhQDkS+BgSvaUxi/TpD/bouGL?= =?us-ascii?Q?3MW6/OLz/+tWug5D7EHwPyyozOPAYX4GWlXVnZGEOYrxboxUZHP3OVbS2+fp?= =?us-ascii?Q?PIObff8B7SvLqM61CVkaDoA7tPGnYgSLEGu8yh8xl4HfACoixUdAcNvgEqzK?= =?us-ascii?Q?KVH+ArQn2yOfsRUG2PFJ+puK1gFQthJIcn5+CixyZr8iKJWDCeHh+dsCU2BA?= =?us-ascii?Q?b1WdWgxim/wbbC2GEuU1+1y3SKnsNYpUtYoIN8Uq1ABDhnOP0vBwuT5n23Df?= =?us-ascii?Q?/JeJ5J8kpicCakTgUplNChUflFoxh8USM2DfF5atUHsZw4J9RK4OYGoj8IKR?= =?us-ascii?Q?R0tGNAa+ag4OfaY6vw67hnSIIhhj90nraNyBM+g?= X-Microsoft-Antispam-Message-Info: cyMoUAPF86cCe0svTJwGuG5YbJIceP1YVYknZkLIkTx6dDNq3G58arz0i6BXJQ0i6dHyOqtSyzvJpFK5QDzFam8KOyfQDcBQlOEk3iJb6/zx0TB/xWu4tVcfrt+BaltHXBX4rG3SjohVjRMFpekMNC/oX2IiIl/tquaTqZ4TuAOxS851Lz8UdPR//CdCwU+h X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4183; 6:1cHqZQVNofLCQGHe+Z5TyOhlHydfQ/oIj0ZjbpJm0ZdTFV8O4O0csk97wP3euzu8rVVDfk+DiUSzBRPlMaGKAV7wgWJmwUfCC768+J/26VB5uDoicBocDC3tGs7E/29fPpunNqNRZDaa1wL+Y3JZVTt1pXnsShO4PGGiCOll4XXJWbGiQFAo9z6p3hwaoIoB9ssHw8Lmy9QQplnajWjSMkMG6Lb7unQSLCf8lRdDPBerZvx9yrAS5L/iQDmpj8uvkcgkuqR/DB9eNQ7Gjmpop2hzdb1C43xujAoQOi2QQF1EMl74XeS+37t8lMF1dTG1BUQEHdJlF98Ya5dq5KeTa4zFc+j1EBIm87JXS1XS4Y7P+QgTjH992hM+PygxKMAx3xvFf/Cew+lwRn/gTTqcvxR/bWkbz/33/lfMd5qkvGvHs0Qpy22knRSa+Ll8mueM4/5KTvpxqod4tUoyKRiywg==; 5:GinU+6kM/c1TJ7I77kkMt6F6+ZXivfp3rFZ9EEkkp/vhF16runyUwp0CR+sCuwEACVO/DICHmy4QkaIG9cFCVoCQABIRd216e7Xnun/kWBw/3RzR1Y01epYhdr+9wB8ZxMCPn+p9qxcWzQTjSQOuog9sgwgf2xPAClbhfpz1NFs=; 24:cSe/ev9UMB+VyR15/As4JATXcU9K5ydRa0XhEq3jF/M4GTYXLMlmEGVcpDeA0Np6DAVOYI1diqi94HG4riC4RUfj12HVltwZ6ErCuchw3mw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4183; 7:FlUGWNN/jJEb+8zSZ0d0bkkZTYbPqFyORtSdr2x0F66EXVCfbznhqQBrQs7D0NONu6CrVcSUa67QV1KpI/sgHUCBQIE1WvpTW2REhmIiXgPDIqtJOnwrTKGN/4MqvXTn08yZVGNy3ddAC35NY7FfVr9nysbaLwIF5RBarIGXbh46BHnNr4FCKqC0qEuPa6fCpAfu5mS7vIbzpOQ/QoMUCp+jRbCfvofQ7f0mlV4MadrAnrRi/7kOgT97F3XKl78Z X-MS-Office365-Filtering-Correlation-Id: e18c0f55-c444-45dc-81f3-08d5c74e7570 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2018 23:30:13.1821 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e18c0f55-c444-45dc-81f3-08d5c74e7570 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB4183 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/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c index 8a15ac4..e97652c 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c @@ -1856,7 +1856,7 @@ static int mlxsw_sp_port_obj_del(struct net_device *dev, break; } - mlxsw_sp_span_respin(mlxsw_sp_port->mlxsw_sp); + mlxsw_sp_span_respin_schedule(mlxsw_sp_port->mlxsw_sp); return err; }
VLAN deletion notifications are emitted before the relevant change is projected to bridge configuration. Thus, like with VLAN addition, schedule SPAN respin for later. Signed-off-by: Petr Machata <petrm@mellanox.com> --- drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)