diff options
author | Hangbin Liu <liuhangbin@gmail.com> | 2017-11-06 02:01:57 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-08 03:28:43 +0100 |
commit | b5f862180d7011d9575d0499fa37f0f25b423b12 (patch) | |
tree | 1148c40af363908755859fc2179e1890821f27aa /drivers/net/vmxnet3 | |
parent | net/mlx5e/core/en_fs: fix pointer dereference after free in mlx5e_execute_l2_... (diff) | |
download | linux-b5f862180d7011d9575d0499fa37f0f25b423b12.tar.xz linux-b5f862180d7011d9575d0499fa37f0f25b423b12.zip |
bonding: discard lowest hash bit for 802.3ad layer3+4
After commit 07f4c90062f8 ("tcp/dccp: try to not exhaust ip_local_port_range
in connect()"), we will try to use even ports for connect(). Then if an
application (seen clearly with iperf) opens multiple streams to the same
destination IP and port, each stream will be given an even source port.
So the bonding driver's simple xmit_hash_policy based on layer3+4 addressing
will always hash all these streams to the same interface. And the total
throughput will limited to a single slave.
Change the tcp code will impact the whole tcp behavior, only for bonding
usage. Paolo Abeni suggested fix this by changing the bonding code only,
which should be more reasonable, and less impact.
Fix this by discarding the lowest hash bit because it contains little entropy.
After the fix we can re-balance between slaves.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vmxnet3')
0 files changed, 0 insertions, 0 deletions