From patchwork Wed Mar 31 20:14:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 12176309 X-Patchwork-Delegate: kuba@kernel.org 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=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,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 81F0CC433ED for ; Wed, 31 Mar 2021 21:02:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4B34861073 for ; Wed, 31 Mar 2021 21:02:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236540AbhCaURG (ORCPT ); Wed, 31 Mar 2021 16:17:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:55154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236464AbhCaUQi (ORCPT ); Wed, 31 Mar 2021 16:16:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AD951610A6; Wed, 31 Mar 2021 20:16:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617221798; bh=b4fK2LjdWuNL55TyfMv3zNPRbipzIVSxwDVOWa5hzIs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZAVwWzyIpltAdVG5lY5NgIzU+wUVQAEWMdaVk5OkakzLHqTt5x+rn5YMrVOJCGvtm TMiD32FaV6kWUNK/iZQVz8WIPafidzExiRf2rUbLVtzLK9Bh1A8ePzd8bqpsY5Bjxw DOMsn0NO9ANqhaU6m1Kp6q8jAA89lJImYKk+GGoN6+Ci8Vg5SYfxTTlJvb8QRAqi+v ctoMtp+4kWSC0VC+J0a6MVTl9TkoYxdZN7jfezOegIA0jxMNv8nVobG7lHTcOUDhT/ cuyrsErNfjYxqzzkEhBiRyZaD2DT6RRo0FA7KNm4JY9fyrOwhhy+w+CyhG/YUpmxNE ov026ZDFvqw+Q== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski Cc: netdev@vger.kernel.org, Tariq Toukan , Maor Dickman , Leon Romanovsky , Roi Dayan , Saeed Mahameed Subject: [net 2/9] net/mlx5: Delete auxiliary bus driver eth-rep first Date: Wed, 31 Mar 2021 13:14:17 -0700 Message-Id: <20210331201424.331095-3-saeed@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210331201424.331095-1-saeed@kernel.org> References: <20210331201424.331095-1-saeed@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Maor Dickman Delete auxiliary bus drivers flow deletes the eth driver first and then the eth-reps driver but eth-reps devices resources are depend on eth device. Fixed by changing the delete order of auxiliary bus drivers to delete the eth-rep driver first and after it the eth driver. Fixes: 601c10c89cbb ("net/mlx5: Delete custom device management logic") Signed-off-by: Maor Dickman Reviewed-by: Leon Romanovsky Reviewed-by: Roi Dayan Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/dev.c b/drivers/net/ethernet/mellanox/mlx5/core/dev.c index b051417ede67..9153c9bda96f 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/dev.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/dev.c @@ -191,12 +191,12 @@ static bool is_ib_supported(struct mlx5_core_dev *dev) } enum { - MLX5_INTERFACE_PROTOCOL_ETH_REP, MLX5_INTERFACE_PROTOCOL_ETH, + MLX5_INTERFACE_PROTOCOL_ETH_REP, + MLX5_INTERFACE_PROTOCOL_IB, MLX5_INTERFACE_PROTOCOL_IB_REP, MLX5_INTERFACE_PROTOCOL_MPIB, - MLX5_INTERFACE_PROTOCOL_IB, MLX5_INTERFACE_PROTOCOL_VNET, };