Skip to content

Commit 63c11dc

Browse files
idoschkuba-moo
authored andcommitted
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 <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Kalesh AP <[email protected]> Reviewed-by: Nikolay Aleksandrov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent a491add commit 63c11dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/vxlan/vxlan_vnifilter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ static struct vxlan_vni_node *vxlan_vni_alloc(struct vxlan_dev *vxlan,
696696
{
697697
struct vxlan_vni_node *vninode;
698698

699-
vninode = kzalloc(sizeof(*vninode), GFP_ATOMIC);
699+
vninode = kzalloc(sizeof(*vninode), GFP_KERNEL);
700700
if (!vninode)
701701
return NULL;
702702
vninode->stats = netdev_alloc_pcpu_stats(struct vxlan_vni_stats_pcpu);

0 commit comments

Comments
 (0)