]> git.baikalelectronics.ru Git - kernel.git/commit
net: Get skb hash over flow_keys structure
authorTom Herbert <tom@herbertland.com>
Thu, 4 Jun 2015 16:16:39 +0000 (09:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jun 2015 22:44:30 +0000 (15:44 -0700)
commitf37ae411af9298c76f3cc971bb251012ae635e6f
tree1f6198f7e7aaccaf60a51a1e69aca366a7fd1374
parentfba722efad61b20e8abe00fd3754661fcf036cb0
net: Get skb hash over flow_keys structure

This patch changes flow hashing to use jhash2 over the flow_keys
structure instead just doing jhash_3words over src, dst, and ports.
This method will allow us take more input into the hashing function
so that we can include full IPv6 addresses, VLAN, flow labels etc.
without needing to resort to xor'ing which makes for a poor hash.

Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
include/net/flow_dissector.h
include/net/ip.h
include/net/ipv6.h
net/core/flow_dissector.c
net/sched/cls_flower.c