Re: [PATCH net] bonding: discard lowest hash bit for 802.3ad layer3+4

2017-11-05 Thread Hangbin Liu
On Sun, Nov 05, 2017 at 01:38:47PM -0800, Eric Dumazet wrote: > > diff --git a/drivers/net/bonding/bond_main.c > > b/drivers/net/bonding/bond_main.c > > index c99dc59..728fa08 100644 > > --- a/drivers/net/bonding/bond_main.c > > +++ b/drivers/net/bonding/bond_main.c > > @@ -3237,7 +3237,7 @@ u32 b

Re: [PATCH net] bonding: discard lowest hash bit for 802.3ad layer3+4

2017-11-05 Thread Eric Dumazet
On Sun, Nov 5, 2017 at 6:56 AM, Hangbin Liu wrote: > 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 an

[PATCH net] bonding: discard lowest hash bit for 802.3ad layer3+4

2017-11-05 Thread Hangbin Liu
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 t