From: Jarno Rajahalme Date: Tue, 29 Apr 2014 22:50:38 +0000 (-0700) Subject: lib/flow: Simplify miniflow accessors, add ipv6 support. X-Git-Tag: sliver-openvswitch-2.2.90-1~3^2~40 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=28a560d97a8b6882e7dfd4df2e52806dba4fd0e5;hp=28a560d97a8b6882e7dfd4df2e52806dba4fd0e5;p=sliver-openvswitch.git lib/flow: Simplify miniflow accessors, add ipv6 support. Add new macro MINIFLOW_MAP(FIELD) that returns the map covering the given struct flow field. Change the miniflow accessors to macros so that they can take the field name directly. Use these to add ipv6 support to miniflow_hash_5tuple(). Add ipv6 support to flow_hash_5tuple() as well so that these two functions continue to return the same hash value for the corresponding flows. Also, simplify miniflow_get_metadata(). Signed-off-by: Jarno Rajahalme Acked-by: Ethan Jackson ---