diff options
author | Eric Dumazet <edumazet@google.com> | 2012-06-03 20:33:21 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-04 11:27:39 -0400 |
commit | 4aea39c11c610e411768649fdc04777903ebfe07 (patch) | |
tree | 0389be795b0ebd8c75992eedf511e2346cfbf10f /net/ipv4/tcp_ipv4.c | |
parent | 90ba9b1986b5ac4b2d184575847147ea7c4280a2 (diff) | |
download | op-kernel-dev-4aea39c11c610e411768649fdc04777903ebfe07.zip op-kernel-dev-4aea39c11c610e411768649fdc04777903ebfe07.tar.gz |
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.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index c8d28c4..3d9c1a4 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, err = net_xmit_eval(err); } - dst_release(dst); return err; } |