tcp: tcp_make_synack() consumes dst parameter
authorEric Dumazet <edumazet@google.com>
Sun, 3 Jun 2012 20:33:21 +0000 (20:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jun 2012 15:27:39 +0000 (11:27 -0400)
commit4aea39c11c610e411768649fdc04777903ebfe07
tree0389be795b0ebd8c75992eedf511e2346cfbf10f
parent90ba9b1986b5ac4b2d184575847147ea7c4280a2
tcp: tcp_make_synack() consumes dst parameter

tcp_make_synack() clones the dst, and callers release it.

We can avoid two atomic operations per SYNACK if tcp_make_synack()
consumes dst instead of cloning it.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_output.c
net/ipv6/tcp_ipv6.c