octeontx2-af: Use u64_to_ether_addr() to convert ethernet address
authorLi Zetao <lizetao1@huawei.com>
Tue, 8 Aug 2023 11:45:03 +0000 (19:45 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Aug 2023 22:29:41 +0000 (15:29 -0700)
commite62c7adfd4acc394c448870ba63d4315e7a662f6
tree4d01815ae4bf7d614ed12184ea3989fc37b677c1
parent7d0bc2602308ec0a183241914b0646d99d0fb541
octeontx2-af: Use u64_to_ether_addr() to convert ethernet address

Use u64_to_ether_addr() to convert a u64 value to an Ethernet MAC address,
instead of directly calculating, as this is exactly what this
function does.

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Acked-by: Geethasowjanya Akula <gakula@marvell.com>
Link: https://lore.kernel.org/r/20230808114504.4036008-3-lizetao1@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c