mlx4: replace mlx4_mac_to_u64() with ether_addr_to_u64()
authorJakub Kicinski <kuba@kernel.org>
Mon, 4 Oct 2021 19:14:43 +0000 (12:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Oct 2021 12:15:35 +0000 (13:15 +0100)
commitded6e16b37e4c8c86cda98604ecd78818d6ca36a
tree987f129ad99137866497ebe6b1427bab56d69a55
parent549017aa1bb7ec19a1e24e7f65480a1c2e76b90e
mlx4: replace mlx4_mac_to_u64() with ether_addr_to_u64()

mlx4_mac_to_u64() predates and opencodes ether_addr_to_u64().
It doesn't make the argument constant so it'll be problematic
when dev->dev_addr becomes a const. Convert to the generic helper.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/qp.c
drivers/net/ethernet/mellanox/mlx4/cmd.c
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/fw.c
include/linux/mlx4/driver.h