提交 6b9e6547 编写于 作者: V Vadim Lomovtsev 提交者: David S. Miller

net: ethernet: cavium: Correct Cavium Thunderx NIC driver names accordingly to module name

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: NVadim Lomovtsev <Vadim.Lomovtsev@cavium.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 bfbe5bab
......@@ -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 {
......
......@@ -18,7 +18,7 @@
#include "thunder_bgx.h"
#include "../common/cavium_ptp.h"
#define DRV_NAME "thunder-nicvf"
#define DRV_NAME "nicvf"
#define DRV_VERSION "1.0"
struct nicvf_stat {
......
......@@ -28,7 +28,7 @@
#include "thunder_bgx.h"
#include "../common/cavium_ptp.h"
#define DRV_NAME "thunder-nicvf"
#define DRV_NAME "nicvf"
#define DRV_VERSION "1.0"
/* Supported devices */
......
......@@ -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 {
......
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册