]> git.baikalelectronics.ru Git - kernel.git/commit
net: Don't write to current task flags on every packet received.
authorDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2013 20:57:38 +0000 (15:57 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2013 20:57:38 +0000 (15:57 -0500)
commit19076f5c2991ee9fd0c17e69c29ec4ade319a0b9
tree72273ca8e34846ac586a520b792c147bd95cd498
parentadbf63bfd7847e59564f4ec5eaf1e3e6e86a3eef
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: David S. Miller <davem@davemloft.net>
net/core/dev.c