aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-06-03 16:33:21 -0400
committerDavid S. Miller <davem@davemloft.net>2012-06-04 11:27:39 -0400
commit4aea39c11c610e411768649fdc04777903ebfe07 (patch)
tree0389be795b0ebd8c75992eedf511e2346cfbf10f /net/ipv4/tcp_ipv4.c
parent90ba9b1986b5ac4b2d184575847147ea7c4280a2 (diff)
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>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index c8d28c433b2b..3d9c1a4b8819 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -848,7 +848,6 @@ static int tcp_v4_send_synack(struct sock *sk, struct dst_entry *dst,
848 err = net_xmit_eval(err); 848 err = net_xmit_eval(err);
849 } 849 }
850 850
851 dst_release(dst);
852 return err; 851 return err;
853} 852}
854 853