From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: Bonding driver has bad load balancing for forwarded traffic, 3.7+ Date: Thu, 18 Apr 2013 15:09:10 -0400 (EDT) Message-ID: <20130418.150910.1780951630545456624.davem@davemloft.net> References: <516C075E.30105@telenet.dn.ua> <1366072679.4459.113.camel@edumazet-glaptop> <1366081404.4459.127.camel@edumazet-glaptop> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: vitalyb@telenet.dn.ua, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, fubar@us.ibm.com, linux@8192.net To: eric.dumazet@gmail.com Return-path: In-Reply-To: <1366081404.4459.127.camel@edumazet-glaptop> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Eric Dumazet Date: Mon, 15 Apr 2013 20:03:24 -0700 > [PATCH] bonding: fix l23 and l34 load balancing in forwarding path > > Since commit 6b923cb7188d46 (bonding: support for IPv6 transmit hashing) > bonding doesn't properly hash traffic in forwarding setups. > > Vitaly V. Bursov diagnosed that skb_network_header_len() returned 0 in > this case. > > More generally, the transport header might not be in the skb head. > > Use pskb_may_pull() & skb_header_pointer() to get it right, and use > proto_ports_offset() in bond_xmit_hash_policy_l34() to get support for > more protocols than TCP and UDP. > > Reported-by: Vitaly V. Bursov > Signed-off-by: Eric Dumazet Applied and queued up for -stable, but: > + sizeof(_l4), &_l4); ^^^^^^^^^^^^^^^^^^^^^^^^^ That's some rather amazing trailing whitespace. Are you trying to break free of earth's atmosphere? :-)