Skip to content

Commit 1635eec

Browse files
d3athjest3rkuba-moo
authored andcommitted
net: ipvlan: remove __get_unaligned_cpu32 from ipvlan 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/20250408091946.2266271-1-julian@outer-limits.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent e4cb911 commit 1635eec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ipvlan/ipvlan_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ void *ipvlan_get_L3_hdr(struct ipvl_port *port, struct sk_buff *skb, int *type)
219219

220220
unsigned int ipvlan_mac_hash(const unsigned char *addr)
221221
{
222-
u32 hash = jhash_1word(__get_unaligned_cpu32(addr+2),
222+
u32 hash = jhash_1word(get_unaligned((u32 *)(addr + 2)),
223223
ipvlan_jhash_secret);
224224

225225
return hash & IPVLAN_MAC_FILTER_MASK;

0 commit comments

Comments
 (0)