summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-02-12 03:28:50 +0300
committerDavid S. Miller <davem@davemloft.net>2016-02-12 13:28:32 +0300
commitea8add2b190395408b22a9127bed2c0912aecbc8 (patch)
tree8b75745c913c33eba2707c3dc5fb0e312bfe3387 /tools
parent1580ab63fc9a03593072cc5656167a75c4f1d173 (diff)
downloadlinux-ea8add2b190395408b22a9127bed2c0912aecbc8.tar.xz
tcp/dccp: better use of ephemeral ports in bind()
Implement strategy used in __inet_hash_connect() in opposite way : Try to find a candidate using odd ports, then fallback to even ports. We no longer disable BH for whole traversal, but one bucket at a time. We also use cond_resched() to yield cpu to other tasks if needed. I removed one indentation level and tried to mirror the loop we have in __inet_hash_connect() and variable names to ease code maintenance. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions