Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vxlan: vnifilter: Use GFP_KERNEL instead of GFP_ATOMIC

The function is not called from an atomic context so use GFP_KERNEL
instead of GFP_ATOMIC. The allocation of the per-CPU stats is already
performed with GFP_KERNEL.

Tested using test_vxlan_vnifiltering.sh with CONFIG_DEBUG_ATOMIC_SLEEP.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://lore.kernel.org/r/20230821141923.1889776-1-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Ido Schimmel and committed by
Jakub Kicinski
63c11dc2 a491add1

+1 -1
+1 -1
drivers/net/vxlan/vxlan_vnifilter.c
··· 696 696 { 697 697 struct vxlan_vni_node *vninode; 698 698 699 - vninode = kzalloc(sizeof(*vninode), GFP_ATOMIC); 699 + vninode = kzalloc(sizeof(*vninode), GFP_KERNEL); 700 700 if (!vninode) 701 701 return NULL; 702 702 vninode->stats = netdev_alloc_pcpu_stats(struct vxlan_vni_stats_pcpu);