diff options
author | Eric Dumazet <edumazet@google.com> | 2016-02-11 16:28:50 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-12 05:28:32 -0500 |
commit | ea8add2b190395408b22a9127bed2c0912aecbc8 (patch) | |
tree | 8b75745c913c33eba2707c3dc5fb0e312bfe3387 /drivers/nvme | |
parent | 1580ab63fc9a03593072cc5656167a75c4f1d173 (diff) |
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 'drivers/nvme')
0 files changed, 0 insertions, 0 deletions