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)
commit6b9e65474b5608c2c8f80aea4d79f8c485b2db8f
tree95ab24787360141fa8304246a53a63dcc394dbdc
parentbfbe5bab66e1aa68033786599cc495e6728e55e8
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