Received: by 10.223.176.46 with SMTP id f43csp1263540wra; Wed, 24 Jan 2018 13:29:01 -0800 (PST) X-Google-Smtp-Source: AH8x2271ThZ6SWgZF8PnebU5l76hs1V0nrbdvVWNjDIQlekqwYiH8oSo8cwBFzL8XdyO6n+rO1NV X-Received: by 10.99.97.210 with SMTP id v201mr12237345pgb.344.1516829340993; Wed, 24 Jan 2018 13:29:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516829340; cv=none; d=google.com; s=arc-20160816; b=bJ+zcX6HPAYsQc/YDFdH2JaFMDthkfcq1+2wIdUhRkmX57Hf6w2YBHZgKVrdQAYHeN 6Ee43jlRsOqETUVVhypTVqohZSBrHX9atwqxmvRuCxFw2Xryqn+yjxUe6B9Qd/+blw8C TeiPnCnAxV2Gig1M7QMHndwB8xgxIKw0D5W2BOsMLMqwQXr/JC+wBPe+BwpKIGlR4aU/ GXud987KtBqdMkADPFr4MIp3k7ac98J7ckNah0YWRlQFbc8sTjTUC6eI84BjOc0q2UIh d171LLGhxTkvTIS9se3BeC2fG2oOCgvzmG85HxaeA3UI0Y2bHCQp9QLcmrys4ZiokUNO Wh0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=Jo0DYtj9Zn64k1K0/x004/pbHrpDFjQCYWfJuhi2nVA=; b=0BPADWRmqbS9t77VdEc8+ytCGEH9tYQ1Pzg/piB9C+JJM1Tm2lhswCfz+383eWGF81 F+fBKIYpP9oNlluLisUTSQ/HqnaSDzGXPIXLrUCSmNz8uGe0R+QleBPRhsj70duuNfsk NTf5zbMB0lzjBp3f8wneiURdlvRf0fCyKjDvQ9Hn1ij9KqNmVSAOPtSfpLiPoFifwPNS ay2m9COXbEHFoYFBT3md8DaAJhEg/VdgTGe1w69W2DlQWhA+cR0jXkZK2labUienkX4t Sa06xqVbCz2hptT2oDTILGebkB7efgkESHjrwb/64AwXyC9cGzP0Q2C4aNp+J0vELrOO bFvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4-v6si766055plj.501.2018.01.24.13.28.47; Wed, 24 Jan 2018 13:29:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932844AbeAXV1m (ORCPT + 99 others); Wed, 24 Jan 2018 16:27:42 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:50356 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932474AbeAXV1j (ORCPT ); Wed, 24 Jan 2018 16:27:39 -0500 Received: from localhost (67.110.78.66.ptr.us.xo.net [67.110.78.66]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 1493B1087C545; Wed, 24 Jan 2018 13:27:38 -0800 (PST) Date: Wed, 24 Jan 2018 16:27:37 -0500 (EST) Message-Id: <20180124.162737.1427515957453841771.davem@davemloft.net> To: Vadim.Lomovtsev@caviumnetworks.com Cc: sgoutham@cavium.com, rric@kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Vadim.Lomovtsev@cavium.com, dnelson@redhat.com Subject: Re: [PATCH v3] net: ethernet: cavium: Correct Cavium Thunderx NIC module and driver names From: David Miller In-Reply-To: <1516630407-23161-1-git-send-email-Vadim.Lomovtsev@caviumnetworks.com> References: <1516290789-3585-1-git-send-email-Vadim.Lomovtsev@caviumnetworks.com> <1516630407-23161-1-git-send-email-Vadim.Lomovtsev@caviumnetworks.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 24 Jan 2018 13:27:38 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vadim Lomovtsev Date: Mon, 22 Jan 2018 06:13:27 -0800 > From: Vadim Lomovtsev > > It was found that ethtool provides unexisting module name while > it queries the specified network device for associated driver > information. Then user tries to unload that module by provided > module name and fails. > > This happens because ethtool reads value of DRV_NAME macro, > while module name is defined at the driver's Makefile. > > This patch is to correct Cavium CN88xx Thunder NIC driver modules > names 'nicvf' to 'thunder_nicvf' and 'nicpf' to 'thunder_nicpf' along > with updating DRV_NAME macro values accordingly. > > Signed-off-by: Dean Nelson > Signed-off-by: Vadim Lomovtsev Once your driver has been deployed in a real upstream release you should never change the driver module name. So if you want to fix things, you'll have to fix them the other way around, by not changing the module name but changing the strings that ethtool ends up with instead. Thank you.