Changing hash balancing algorithm for multipath routes in kernel
by Railfox from LinuxQuestions.org on (#4YTFN)
Hello everyone. I ask for help.
I have a net with a few routers (some for clients and some as border routers).
Each client router have equal path (ECMP) to border routers and must send one client's traffic to one border router. It will be done with calculation hash based on source address, but kernel parameter fib_multipath_hash_policy can be L3 or L4 (both of them have source+destination).
May be someone know where this part in kernel code? Or may be someone did this change already.
PS. I am sorry for bad English.


I have a net with a few routers (some for clients and some as border routers).
Each client router have equal path (ECMP) to border routers and must send one client's traffic to one border router. It will be done with calculation hash based on source address, but kernel parameter fib_multipath_hash_policy can be L3 or L4 (both of them have source+destination).
May be someone know where this part in kernel code? Or may be someone did this change already.
PS. I am sorry for bad English.