From patchwork Wed Jul 28 07:33:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 12405063 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=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 9AED4C4338F for ; Wed, 28 Jul 2021 07:33:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7F3DE60E78 for ; Wed, 28 Jul 2021 07:33:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233472AbhG1Hdz (ORCPT ); Wed, 28 Jul 2021 03:33:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:34594 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232691AbhG1Hdy (ORCPT ); Wed, 28 Jul 2021 03:33:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 84AF160E78; Wed, 28 Jul 2021 07:33:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627457633; bh=uPbyNLfxnXmaIsbtu2itws9HGIbGQSrwkqk6xBg1Jg4=; h=From:To:Cc:Subject:Date:From; b=F+hgG7ovLHHL0hA3yzdh4NPImlcoHeVC04Wgqku3O7gKZubi/6oDC6H6DcUyajUzn qWjlsqcXzdLHqSlSCd1KBSZt2jNM/r8LlQtnjzCckVo0hy2HoxMiac/0OZz2+xugUK mTEmzCgm5E+v2euTMYAlSLL+XgCbI2sS3eNHSvkt9IZB+1HYuiVqM8o8LOucAvUW9V Xwrc091w1Ae3whc/emnCzWZKPthy6GaE8F5Ft9XuGyOmFN7i7hN6yQOBl9cewHoFqH K1ph+48Pzt5ZcZShQ5hFTuG+/tXJM4j6IJqcXxcrRa/F8478FMmrip97rs38JtWspJ QZJbheVn4TajQ== From: Leon Romanovsky To: Jakub Kicinski , Jiri Pirko , "David S. Miller" Cc: Leon Romanovsky , netdev@vger.kernel.org, Saeed Mahameed , Vignesh Raghavendra Subject: [PATCH net-next v1 0/3] Remove duplicated devlink registration check Date: Wed, 28 Jul 2021 10:33:44 +0300 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Leon Romanovsky Changelog: v1: * Added two new patches that remove registration field from mlx5 and ti drivers. v0: https://lore.kernel.org/lkml/ed7bbb1e4c51dd58e6035a058e93d16f883b09ce.1627215829.git.leonro@nvidia.com -------------------------------------------------------------------- Both registered flag and devlink pointer are set at the same time and indicate the same thing - devlink/devlink_port are ready. Instead of checking ->registered use devlink pointer as an indication. Thanks Leon Romanovsky (3): net: ti: am65-cpsw-nuss: fix wrong devlink release order net/mlx5: Don't rely on always true registered field devlink: Remove duplicated registration check .../ethernet/mellanox/mlx5/core/en/devlink.c | 10 ++---- .../net/ethernet/mellanox/mlx5/core/en_main.c | 11 ++---- drivers/net/ethernet/ti/am65-cpsw-nuss.c | 34 +++++++++---------- include/net/devlink.h | 4 +-- net/core/devlink.c | 19 ++++++----- 5 files changed, 33 insertions(+), 45 deletions(-)