Skip to content
Commit 9754e293 authored by David S. Miller's avatar David S. Miller
Browse files

net: Don't write to current task flags on every packet received.



Even for non-pfmalloc SKBs, __netif_receive_skb() will do a
tsk_restore_flags() on current unconditionally.

Make __netif_receive_skb() a shim around the existing code, renamed to
__netif_receive_skb_core().  Let __netif_receive_skb() wrap the
__netif_receive_skb_core() call with the task flag modifications, if
necessary.

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