Re: [PATCH net-next] tcp: connect() from bound sockets can be faster

2015-05-27 Thread David Miller
From: Eric Dumazet Date: Wed, 27 May 2015 10:46:02 -0700 > From: Eric Dumazet > > __inet_hash_connect() does not use its third argument (port_offset) > if socket was already bound to a source port. > > No need to perform useless but expensive md5 computations. > > Reported-by: Crestez Dan Leo

[PATCH net-next] tcp: connect() from bound sockets can be faster

2015-05-27 Thread Eric Dumazet
From: Eric Dumazet __inet_hash_connect() does not use its third argument (port_offset) if socket was already bound to a source port. No need to perform useless but expensive md5 computations. Reported-by: Crestez Dan Leonard Signed-off-by: Eric Dumazet --- net/ipv4/inet_hashtables.c |9