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)
commit767dd03369ac18af58efdef0383d6eb986eab426
tree5af8a861110676a084078a168c27fd3935d41f13
parent21851264120b0bd1f953328cb131abcfa9305bc3
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