Received: by 10.223.176.46 with SMTP id f43csp2016149wra; Thu, 25 Jan 2018 03:39:37 -0800 (PST) X-Google-Smtp-Source: AH8x2248st2QRkEXdqpFtElvQ2d9PUykvoOzRoTlrZAo+kaYodpsbuHfkc8vZ94AVdGQRzNSFHKJ X-Received: by 2002:a17:902:4003:: with SMTP id b3-v6mr9697794pld.154.1516880377167; Thu, 25 Jan 2018 03:39:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516880377; cv=none; d=google.com; s=arc-20160816; b=gX46iLVUQyiZVkQiGytnk45Tr1AyRfZ+qh1qJ69SSqzDUA12tZehgD7QsBF0cbV6Uv 2bWuLW6nYrW6CIGKh6qigwD9TChBmqFYxc14TutvAK3Y+t4iy0kau/oZpV/6xoHH80Zf Ae/a0yDTgulm1SeQ6GUWxm4xglCgsIlfIJ+xCJSRYAfuR+zd4iiVbgEfPACc6OF1YNtV twoo6O/iXAnMYb3+KZr7ilSICd4WRbeLE67o+su+MgcvCi9AZpMWnXlKTb5w8F17H3CW oFpFS/HiSLnKXouBKi8p/yRzRUJX2x6BhwwcOWRxVm69LJ5D0m787kZdbzdSsZtwO5Vv 0D7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=P2sObRksusPDFw1flNQl/kGsmSvJnCNZu9Q49S5FxFg=; b=CHs6esTxkwdKnyx61ZN5TYqI41lWLhyOVlTURQnJifYaX8HvTX0uG54LjXkl3XQoYe xMCxWRPaPdTdBfk4Rw29+zSPviRKCJszrWsY8UdmMDBOzznGohMNoPOpCS5gs64je+07 XKJrSHqFf6/imF9Qf/jStWONoZ5ogiF5P33bNMB2u4jnTLaotqV8hvXTE7B9HpXR9dJt fIIiL2Y3ImgyhpF58Yg4qBVPIY3AxnSAC1cuMbJRUNuMu6AdSuTodfwK+tApulV0k3RM C948k/eYVGMrSXizWudwCLvLSCB8tKEenJ7v21DB4Ann+PdcSEeB9g63+/3IvlalcKPt QI5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=Xku5Goox; 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 f62-v6si1833394plb.297.2018.01.25.03.39.19; Thu, 25 Jan 2018 03:39:37 -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; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=Xku5Goox; 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 S1751807AbeAYLig (ORCPT + 99 others); Thu, 25 Jan 2018 06:38:36 -0500 Received: from mail-sn1nam02on0082.outbound.protection.outlook.com ([104.47.36.82]:4176 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751776AbeAYLie (ORCPT ); Thu, 25 Jan 2018 06:38:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=P2sObRksusPDFw1flNQl/kGsmSvJnCNZu9Q49S5FxFg=; b=Xku5Goox1HsBwOoqwjnpzeWeryI6Zp69sYUhoRmsE6q6OtZVqqyn2cG4//5PYjyGxz5ieA82l7Wy6CulAUElguiBztYriTOlxCFFj48vtZRBaI6H8Jm5JoOx77SpKLtXOg0QWKLi5ZoISiC1aiSr5/tUFN2GkcC1p3c5iYRg0fc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Vadim.Lomovtsev@cavium.com; Received: from localhost.localdomain.com (50.233.148.156) by DM5PR07MB3002.namprd07.prod.outlook.com (10.172.87.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Thu, 25 Jan 2018 11:38:31 +0000 From: Vadim Lomovtsev To: sgoutham@cavium.com, rric@kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net Cc: Vadim Lomovtsev Subject: [PATCH v4] net: ethernet: cavium: Correct Cavium Thunderx NIC driver names accordingly to module name Date: Thu, 25 Jan 2018 03:38:17 -0800 Message-Id: <1516880297-6636-1-git-send-email-Vadim.Lomovtsev@caviumnetworks.com> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1516630407-23161-1-git-send-email-Vadim.Lomovtsev@caviumnetworks.com> References: <1516630407-23161-1-git-send-email-Vadim.Lomovtsev@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: YTOPR0101CA0043.CANPRD01.PROD.OUTLOOK.COM (52.132.42.20) To DM5PR07MB3002.namprd07.prod.outlook.com (10.172.87.140) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b6a8ff46-3a21-41d5-2e2c-08d563e8299e X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:DM5PR07MB3002; X-Microsoft-Exchange-Diagnostics: 1;DM5PR07MB3002;3:UQnL+vDXQlgXmq6kLxA9YNHNNJ6PmjxRNfMld+qBPYViaa54jrlEBnImgihlZcJ1eaGxUtLU1h+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2UuBbD/rmScxOdPC9YCgx+svmCpNsrZtFSioxR29Z4fAWlTbYsxpUaNTpzjn3b4OijhgOGjeIHDbQNZYzd1dajVJlR+lhxhNyvAmT9RGpkSZ9u4bSzOQJUNvsBofRU32mGbh+OQxyo9burRxvI+Ufp5HkleJ4LEjEobyItvGSPD+zupZN/OcwCABB0Gtt/mAhm2O8zuk2I7Sn281X+ELErhC2vRcjlkUDK3svABbPB8+HxlkSh/rsC1Q+6osuQVzgqcalK7kDqIp5GxtuJCrWjcZ7LMKbllIiHTfnL3PEssw8Yk72Y39j4wc3LGdgi63bYfaRCvBfRgvlAXieBWf2nklijwSi3Ryr2UTxF6gwGPhMGv7Lk=;4:jNxQvTvotKGJfa1WlW2jvgOqLQBXbQEruoK5pOXEeIFPhKtdI7QBUpN0ol9/Axy7/v2eXEBkq1g26Xi2Hl33F/739Ex30a8+dcDaoUkG8ZrwJwdkkCsTXrcw5bv9yms7wE+Plw66qSByAs+d6UxMWPrSKXoFHOIHCyEp4PaN72XK8EWaXzBSXMH0JxS+wVAQ4WO+11yThjtRMNWis+z3RIrtVp4sq+Rg5KmT7D4ubRzWL1+FeFyECCR0eIu/cbTS1yHyNoQozPLRIoglQymOww== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(3231023)(2400081)(944501161)(6041288)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR07MB3002;BCL:0;PCL:0;RULEID:;SRVR:DM5PR07MB3002; X-Forefront-PRVS: 0563F2E8B7 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(376002)(366004)(39380400002)(39860400002)(396003)(346002)(189003)(199004)(5660300001)(8936002)(106356001)(81156014)(81166006)(107886003)(6116002)(3846002)(8676002)(2950100002)(68736007)(42882006)(66066001)(50226002)(47776003)(6666003)(53416004)(105586002)(48376002)(50466002)(4326008)(25786009)(69596002)(36756003)(97736004)(478600001)(52116002)(51416003)(53936002)(72206003)(6512007)(7736002)(6486002)(16586007)(26005)(316002)(16526018)(76176011)(386003)(6506007)(2906002)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR07MB3002;H:localhost.localdomain.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM5PR07MB3002;23:dkTSi5LjyacFpp9HBe7kydBv4LVkVE/psa9lLKToX?= =?us-ascii?Q?i4SR/6olCuZYR/S9dGGh+jbwstQyLIgTHDX5BOEo/Z2EaSyD+U8hw5QL1MPY?= =?us-ascii?Q?gNlSbKeCXiLOBkdIeBNKh//Nm85M1V3Q6FvSuMUppNPkaY0zi/YxBI0EIysu?= =?us-ascii?Q?Whnch/JHzEnE8ZdlCJhgQCZHGejZ9Mgr5dzJyRI0Q1KdQWKqd4NjdwazAYgG?= =?us-ascii?Q?dfVxFaynliLVq7JtDo2nO/YtwGtw9NCezvKh2X1Ru+kWqhpC1lYm2qtquH+e?= =?us-ascii?Q?wIHKaRqoQI4KOmdbGOr6RL5L/EniV3kHyP7xah9fIf5UZNlZImUoSX27swxh?= =?us-ascii?Q?UTqc8ezAZV6dmts26/D1hCFXG2XBrXUKeGJVDlxhU77IS+nUfbmEjw1Hgn06?= =?us-ascii?Q?i92/3hFy4OBzYoyQHSVY1ghTUWfDAd4IHbDBedgiAKHTFESdAicte+awkly9?= =?us-ascii?Q?Eumf3whNWfmbAziGLTloVRiraZSXZcqXEdDxidvGlc+1OvI+JjU4bFM1K74B?= =?us-ascii?Q?AJHIy1fjLLKt4V1nBD6zT7D3D+XDtzOMZDTUEbR4+VKO0F+2crFleFUef+v2?= =?us-ascii?Q?1m3AR5hXj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G5HmilSisYD7N9e0l7WWyQtCnRVBAY0=;5:JspF0EMCZwFF8y/pFxJ2vvofoX2/YBLbJBaLVyHBXgIxd8U4Tf5iajmPWAbCC+gKNitfuKqkflNf+XVJmoKRbFxFBrcXnDjl2K6WiCFmOId9LO9iVJYjp+fWjymw66/ZSXzrvETuo+0yGyY+2v86Tpp0vwKFnrIq924G2MvfKEU=;24:X1D0HO6DnRB6UPbzq4dcGhTwh84g0qs9rvE0gZ43dQZHPJs6kTYBZHpbb7hiUHSbkVaw84LZS41eo352JpPcEG7u3SKNgqSRaxPf4tRWEM8=;7:2AVo0ISTW558G5yEJHdfKACjd6LDK/1MqbKaX3cNW9TrpfvDHcv4XLRxoagXwOcUUlPVlCTOIi0tiTBbO3wTsrz0IVEad/Et8q1p0mUkMFbuiwlfweNES0tltgRXbqRj5DADbOFvgMyDyia46o2xhRTTLbegktJyyTQTj5I0DhZxaictgrxWrMJPp2uc6ZQd7auJCpcUpjOhvXUwJ6mGvpffHUzU8oIvgLoppatv2iU+03HXgbBbpbyGtNdMLhhI SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2018 11:38:31.6251 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b6a8ff46-3a21-41d5-2e2c-08d563e8299e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3002 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 names (DRV_NAME macro) 'thunder-nicvf' to 'nicvf' and 'thunder-nic' to 'nicpf', sync bgx and xcv driver names accordingly to their module names. Signed-off-by: Vadim Lomovtsev --- drivers/net/ethernet/cavium/thunder/nic_main.c | 2 +- drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c | 2 +- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 2 +- drivers/net/ethernet/cavium/thunder/thunder_bgx.c | 2 +- drivers/net/ethernet/cavium/thunder/thunder_xcv.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/cavium/thunder/nic_main.c b/drivers/net/ethernet/cavium/thunder/nic_main.c index 8f1dd55b3e08..159b422da7fa 100644 --- a/drivers/net/ethernet/cavium/thunder/nic_main.c +++ b/drivers/net/ethernet/cavium/thunder/nic_main.c @@ -18,7 +18,7 @@ #include "q_struct.h" #include "thunder_bgx.h" -#define DRV_NAME "thunder-nic" +#define DRV_NAME "nicpf" #define DRV_VERSION "1.0" struct hw_info { diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c b/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c index b9ece9cbf98b..07f00558af9c 100644 --- a/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c +++ b/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c @@ -16,7 +16,7 @@ #include "q_struct.h" #include "thunder_bgx.h" -#define DRV_NAME "thunder-nicvf" +#define DRV_NAME "nicvf" #define DRV_VERSION "1.0" struct nicvf_stat { diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethernet/cavium/thunder/nicvf_main.c index 7cb7571f9ad9..0a8f3e3ce637 100644 --- a/drivers/net/ethernet/cavium/thunder/nicvf_main.c +++ b/drivers/net/ethernet/cavium/thunder/nicvf_main.c @@ -26,7 +26,7 @@ #include "nicvf_queues.h" #include "thunder_bgx.h" -#define DRV_NAME "thunder-nicvf" +#define DRV_NAME "nicvf" #define DRV_VERSION "1.0" /* Supported devices */ diff --git a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c index 5e5c4d7796b8..79fae7de3404 100644 --- a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c +++ b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c @@ -21,7 +21,7 @@ #include "nic.h" #include "thunder_bgx.h" -#define DRV_NAME "thunder-BGX" +#define DRV_NAME "thunder_bgx" #define DRV_VERSION "1.0" struct lmac { diff --git a/drivers/net/ethernet/cavium/thunder/thunder_xcv.c b/drivers/net/ethernet/cavium/thunder/thunder_xcv.c index 578c7f8f11bf..2d5e8dab1f70 100644 --- a/drivers/net/ethernet/cavium/thunder/thunder_xcv.c +++ b/drivers/net/ethernet/cavium/thunder/thunder_xcv.c @@ -20,7 +20,7 @@ #include "nic.h" #include "thunder_bgx.h" -#define DRV_NAME "thunder-xcv" +#define DRV_NAME "thunder_xcv" #define DRV_VERSION "1.0" /* Register offsets */ -- 2.14.3