Re: Bonding driver has bad load balancing for forwarded traffic,3.7+
From: David Miller
Date: Thu Apr 18 2013 - 15:09:17 EST
From: Eric Dumazet <eric.dumazet@xxxxxxxxx>
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 <vitalyb@xxxxxxxxxxxxx>
> Signed-off-by: Eric Dumazet <edumazet@xxxxxxxxxx>
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? :-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/