This patch adds "per destination" and "per source" XOR hashing methods to "balance-xor" mode of "bonding" kernel module.
http://igorsd.ru/kernel/bonding.xor_modes_3.11.diff After installing patched kernel, load module as follows:
for "per layer 3 destination" balancing:
modprobe bonding mode=2 xmit_hash_policy=3 ..other params..
for "per layer 3 source" balancing:
modprobe bonding mode=2 xmit_hash_policy=4 ..other params..
mode=2 is required for "balance-xor" mode of operation.