]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: cavium: Correct Cavium Thunderx NIC driver names accordingly to module...
authorVadim Lomovtsev <Vadim.Lomovtsev@cavium.com>
Thu, 25 Jan 2018 11:38:17 +0000 (03:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jan 2018 17:22:06 +0000 (12:22 -0500)
commitb656d984a02bbaafcd1acf19d6bf5e0f6f66dc8f
tree95ab24787360141fa8304246a53a63dcc394dbdc
parentba3f1b22ffeaa1ea6d8c4a7e093c530d4dc42977
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: Vadim Lomovtsev <Vadim.Lomovtsev@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nic_main.c
drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
drivers/net/ethernet/cavium/thunder/nicvf_main.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
drivers/net/ethernet/cavium/thunder/thunder_xcv.c