Skip to content
Commit 869aa410 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

sch_gred: prefer GFP_KERNEL allocations



In control path, its better to use GFP_KERNEL allocations where
possible.

Before taking qdisc spinlock, we preallocate memory just in case we'll
need it in gred_change_vq()

This is a followup to commit 3f1e6d3f (sch_gred: should not use
GFP_KERNEL while holding a spinlock)

Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c607b2ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment