From: Tom Herbert Date: Thu, 4 Jun 2015 16:16:40 +0000 (-0700) Subject: net: Add full IPv6 addresses to flow_keys X-Git-Tag: omap-for-v4.2/fixes-rc1^2~134^2~133^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3f8324188fa80178f20c8209b492ca6191177e8;p=pandora-kernel.git net: Add full IPv6 addresses to flow_keys This patch adds full IPv6 addresses into flow_keys and uses them as input to the flow hash function. The implementation supports either IPv4 or IPv6 addresses in a union, and selector is used to determine how may words to input to jhash2. We also add flow_get_u32_dst and flow_get_u32_src functions which are used to get a u32 representation of the source and destination addresses. For IPv6, ipv6_addr_hash is called. These functions retain getting the legacy values of src and dst in flow_keys. With this patch, Ethertype and IP protocol are now included in the flow hash input. Signed-off-by: Tom Herbert Signed-off-by: David S. Miller --- Reading git-diff-tree failed