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 C0C0AC43381 for ; Sun, 31 Mar 2019 06:49:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6B30C20850 for ; Sun, 31 Mar 2019 06:49:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Mellanox.com header.i=@Mellanox.com header.b="Va4+nZ/B" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726163AbfCaGtm (ORCPT ); Sun, 31 Mar 2019 02:49:42 -0400 Received: from mail-eopbgr30080.outbound.protection.outlook.com ([40.107.3.80]:34881 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725886AbfCaGtl (ORCPT ); Sun, 31 Mar 2019 02:49:41 -0400 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=bAaUb5jch0LBLxrcNHETK3AAqYqVS17+O9hp2ZxeCKY=; b=Va4+nZ/BHMbZI2t6yP+5FCSLB1u9zMMp1f+LgM9e2cNaK2yqU+u6fKaWgqihIu5Uth8HqcTB5BMG3Zm3woi2jnnfOXXCAJDf3mi7ZlxdinozmBvFabwdK+hi8imiMn1jomo93QMZIqCME2RnWY5gfvK3M8lQ6uizIjgvY2qEFdw= Received: from AM0PR05MB6100.eurprd05.prod.outlook.com (20.178.119.209) by AM0PR05MB5281.eurprd05.prod.outlook.com (20.178.16.207) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.20; Sun, 31 Mar 2019 06:49:37 +0000 Received: from AM0PR05MB6100.eurprd05.prod.outlook.com ([fe80::8c3:74d4:724a:9f35]) by AM0PR05MB6100.eurprd05.prod.outlook.com ([fe80::8c3:74d4:724a:9f35%4]) with mapi id 15.20.1750.017; Sun, 31 Mar 2019 06:49:37 +0000 From: Ido Schimmel To: "netdev@vger.kernel.org" CC: "davem@davemloft.net" , Jiri Pirko , mlxsw , Ido Schimmel Subject: [PATCH net-next 0/4] mlxsw: spectrum_acl: Get rid of failed_rollback mechanism Thread-Topic: [PATCH net-next 0/4] mlxsw: spectrum_acl: Get rid of failed_rollback mechanism Thread-Index: AQHU543o9NzkWw2LVEWYu9Ja+JBoCw== Date: Sun, 31 Mar 2019 06:49:37 +0000 Message-ID: <20190331064923.29026-1-idosch@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: LNXP265CA0003.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5e::15) To AM0PR05MB6100.eurprd05.prod.outlook.com (2603:10a6:208:12e::17) 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-ms-office365-filtering-correlation-id: f9f9b9f2-3b97-40d6-d5f6-08d6b5a50abb x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM0PR05MB5281; x-ms-traffictypediagnostic: AM0PR05MB5281: x-microsoft-antispam-prvs: x-forefront-prvs: 0993689CD1 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39850400004)(136003)(346002)(396003)(366004)(376002)(199004)(189003)(68736007)(53936002)(99286004)(36756003)(6512007)(1076003)(26005)(6116002)(2616005)(107886003)(186003)(4326008)(3846002)(54906003)(8936002)(476003)(2906002)(52116002)(50226002)(5640700003)(81166006)(2351001)(486006)(478600001)(7736002)(81156014)(305945005)(14454004)(5660300002)(316002)(25786009)(66066001)(102836004)(8676002)(6436002)(6506007)(386003)(86362001)(6486002)(1730700003)(105586002)(106356001)(2501003)(6916009)(71190400001)(71200400001)(97736004)(256004)(4744005)(26583001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR05MB5281;H:AM0PR05MB6100.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: Oeu+PwYslmtO1EpTTCQJBZxyKu5xumT1oyH3bjPM5CshbJ02hC+2uQ3PbQQhcNak/PxVofkCI9Ssbs2f9qQ5rwQ3U8eI/DFaFOknsYw9faA3A6GoVCQT7Ma5ocJYw74aQnu5Kdxjl8lkFen1NgRV5LfI63MYOv5tvSF2oWVSoQHk9LfYAurZFLnaKWyZgIiwGsbZ7F1CQv3RQM6yTfvW7cb7gylcbRUgBgpeFVyGy2wiY7rPStyf/PVec1ch+4lIe5QwZ76BesQZaZmA0IffKrIRTigHqNJB0sfqBJ4UJKIa5QFc+muRDznEMR+qSs27Z6tU2+jhrzAs3N3VKc+5coV3UipiQT62spiZ0JwA6zHdG1TwgWr6KgRyy0G1uO6qcNdZIdA+2VZXJlgM/Ysgox5YwmgQfxkoFdxF1m8Lc3U= 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: f9f9b9f2-3b97-40d6-d5f6-08d6b5a50abb X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Mar 2019 06:49:37.7299 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5281 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Jiri says: Currently if vregion rehash fails, it rolls back to the original ERP set. However, in case of unlikely rollback fail, the vregion is in a zombie state and never gets rehashed again. With the recent changes, it is possible to try to continue the rollback. Do it from the last failed ventry. Jiri Pirko (4): mlxsw: spectrum_acl: Remove redundant failed_rollback from migrate_start() mlxsw: spectrum_acl: Move rehash_dis trace call and err msg to vregion_migrate() mlxsw: spectrum_acl: Remove failed_rollback dead end mlxsw: spectrum_acl: Rename rehash_dis trace .../mellanox/mlxsw/spectrum_acl_tcam.c | 36 +++++++++---------- include/trace/events/mlxsw.h | 2 +- 2 files changed, 17 insertions(+), 21 deletions(-) --=20 2.20.1