]> git.baikalelectronics.ru Git - kernel.git/commit
net: speedup sock_recv_ts_and_drops()
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 28 Apr 2010 19:14:43 +0000 (19:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Apr 2010 23:29:42 +0000 (16:29 -0700)
commit6ae30867703ca1f9ece13f40c9b85367c6f81268
tree5af8a861110676a084078a168c27fd3935d41f13
parent067e1a31030cf867292e2124020a6f2eb959a729
net: speedup sock_recv_ts_and_drops()

sock_recv_ts_and_drops() is fat and slow (~ 4% of cpu time on some
profiles)

We can test all socket flags at once to make fast path fast again.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/socket.c