datapath: Change vals[] in struct port_lookup_key into discrete members.
authorBen Pfaff <blp@nicira.com>
Tue, 30 Nov 2010 23:58:55 +0000 (15:58 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 3 Dec 2010 17:32:31 +0000 (09:32 -0800)
commit4029c21acb33723ecc3f621c1c75819651889b58
treef3513619541bff89601c1935e6f4486b6ec7e372
parent5b16f00916dbae0c2a3f91e504332b61f021a91a
datapath: Change vals[] in struct port_lookup_key into discrete members.

The 'vals' array is only convenient for use by port_hash().  It's a
liability otherwise, since it makes the code wider and harder to read and
seems to me less amenable to compiler optimization.

In an upcoming patch the key needed in struct port_lookup_key will
increase in size to 64 bits, so that using an array of u32 becomes even
more problematic.  Therefore, this commit gets rid of the array in favor
of discrete named members that carry the same information.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/tunnel.c