mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-26 09:26:51 +08:00
net: remove __get_unaligned_cpu32 from macvlan driver
The __get_unaligned_cpu32 function is deprecated. So, replace it with the more generic get_unaligned and just cast the input parameter. Signed-off-by: Julian Vetter <julian@outer-limits.org> Link: https://patch.msgid.link/20250408091548.2263911-1-julian@outer-limits.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
f8cb38c32e
commit
e4cb911780
@@ -254,7 +254,7 @@ static u32 macvlan_hash_mix(const struct macvlan_dev *vlan)
|
||||
static unsigned int mc_hash(const struct macvlan_dev *vlan,
|
||||
const unsigned char *addr)
|
||||
{
|
||||
u32 val = __get_unaligned_cpu32(addr + 2);
|
||||
u32 val = get_unaligned((u32 *)(addr + 2));
|
||||
|
||||
val ^= macvlan_hash_mix(vlan);
|
||||
return hash_32(val, MACVLAN_MC_FILTER_BITS);
|
||||
|
||||
Reference in New Issue
Block a user