Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4879245rwb; Tue, 8 Aug 2023 15:49:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5HUJXpBBTMuy3nBGbn/viO6b6jMYPr/8XkvwT7GV0/MY5rUx50WpE3VW+HEFm9+/Za7aI X-Received: by 2002:a2e:3011:0:b0:2b9:e304:5f81 with SMTP id w17-20020a2e3011000000b002b9e3045f81mr646810ljw.23.1691534949762; Tue, 08 Aug 2023 15:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691534949; cv=none; d=google.com; s=arc-20160816; b=RULvPvK8ekT8tZ98sNsZqyjEawNynaz5a643hitxsRBxmxxO0CxVigIpNB/ZdQI1VA TtjTRJkgf7hggRvNFIulbOqg/i0f24UJjla/1uCzljk8ODCtnpnILhz6CGTTNstJ6Gh8 q3V/pEZRwZYNC1kk38kGUgHCL3+InAvhxKML/dASvFXod0RnXOH8/dzZUV3nhAobRyOD jjaXTcqkW9n+sNkNMNyTGK9wGZBaroEPOHq8k0xe/2DjV9jFUDsax4Bjl7+vxRu4CckC 14xYQ2x19cFIqwsTLHJSfunfYVFKM+BiI/wZ6xcog58M0pl2gbKF/pw4G8xfWgS/29LM Vt2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jIm5WQw8DRp/nVP/E05j9EFBF/ZRLZSd+EnD76a+lyc=; fh=kDjNYbNqpTt++NYpKxrianM7w81rO4mq5+oH1ITmLwE=; b=HfgRgPSPxJ2QdeuCf7RqvRgpPOzY29dV5bEeRah86YmlqPN+y9jbP8XE8Kk5i3Y1T7 454ebGXmSFallcsDx/VCW6ntobzJPfcG31vpo6ym+pYVYCYb3/Sw17hbqXwg4Jik6ZSB MbqpgyIDa7Nz52C12pO+iUBpYdooTR3RM1J+jf+yyOTi9ByengJfYgcXQq/ole/J0XZj K38p5nK0Z7dw2LPdkriI9bAxRiDmcv0rlEA9h7tGP4kzmYUsCM1nzOPa3t6GkoYLoNjZ mHfW67HKk6djqnF4V8QXChxj8yth/mdJkFZK4pVs00L+V+VqEmso8ECSR3nw5c6uXrK4 10Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tDG9QJkL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5-20020a1709060f8500b009889baa6a24si7439848ejj.1032.2023.08.08.15.48.45; Tue, 08 Aug 2023 15:49:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tDG9QJkL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235424AbjHHUgD (ORCPT + 99 others); Tue, 8 Aug 2023 16:36:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233713AbjHHUfq (ORCPT ); Tue, 8 Aug 2023 16:35:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B77DD1715; Tue, 8 Aug 2023 11:56:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4FA1B62A8E; Tue, 8 Aug 2023 18:56:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC9C6C433C9; Tue, 8 Aug 2023 18:56:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691520967; bh=X7+ZlYY0FSROiWpD/bKqog6jgK40bS0uWHHjKh6wWlQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tDG9QJkLhPbqqQfBzt3N7r2dsveLSfJMqJQfcq0fGicrdcP6y78WcyFNVY21Ax8h2 xFWsWEeiADuI5XUFS3VMfpTD8uKILykVo32nUMolFaKIW2gRP1f/D/pgT4KQ3WAaq5 f5epbNJZuODx4njaDNqmunIVfXtw+XWFGFh6yi9Aj9DA962USo9mS/DDPeUIWLIAuF K2B1YZwIHghG31iZS5eaGN2fifNyuh1XCAlL1DexxeTRTdM5hsw8n60uC0lrkn5QC/ Le3r2umH3AE1Hbyct6+Oth8getUwyIa9G9uIyc8PvVPq/FN216Ju1RnHtDN5B57Ju2 HPBmj5nge99iA== Date: Tue, 8 Aug 2023 21:56:01 +0300 From: Leon Romanovsky To: Petr Pavlu Cc: tariqt@nvidia.com, yishaih@nvidia.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, jgg@ziepe.ca, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 04/10] mlx4: Get rid of the mlx4_interface.activate callback Message-ID: <20230808185601.GI94631@unreal> References: <20230804150527.6117-1-petr.pavlu@suse.com> <20230804150527.6117-5-petr.pavlu@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230804150527.6117-5-petr.pavlu@suse.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 04, 2023 at 05:05:21PM +0200, Petr Pavlu wrote: > The mlx4_interface.activate callback was introduced in commit > 79857cd31fe7 ("net/mlx4: Postpone the registration of net_device"). It > dealt with a situation when a netdev notifier received a NETDEV_REGISTER > event for a new net_device created by mlx4_en but the same device was > not yet visible to mlx4_get_protocol_dev(). The callback can be removed > now that mlx4_get_protocol_dev() is gone. > > Signed-off-by: Petr Pavlu > Tested-by: Leon Romanovsky > --- > drivers/net/ethernet/mellanox/mlx4/en_main.c | 37 +++++++++----------- > drivers/net/ethernet/mellanox/mlx4/intf.c | 2 -- > include/linux/mlx4/driver.h | 1 - > 3 files changed, 16 insertions(+), 24 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky