net: Pre-COW metrics for TCP.
authorDavid S. Miller <davem@davemloft.net>
Fri, 28 Jan 2011 06:01:53 +0000 (22:01 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jan 2011 06:01:53 +0000 (22:01 -0800)
commita4daad6b0923030fbd3b00a01f570e4c3eef446b
treeb8e5b9a2110628503e57149f0bb2a4bb1bf3f027
parent8571a19c4ac140f1a507f3e7eb716892afa27109
net: Pre-COW metrics for TCP.

TCP is going to record metrics for the connection,
so pre-COW the route metrics at route cache entry
creation time.

This avoids several atomic operations that have to
occur if we COW the metrics after the entry reaches
global visibility.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow.h
include/net/inet_sock.h
include/net/route.h
net/ipv4/route.c