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>
This commit is contained in:

committed by
David S. Miller

parent
90ba9b1986
commit
4aea39c11c
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user