datapath: Avoid calling flow_hash() twice for the same key.
authorBen Pfaff <blp@nicira.com>
Fri, 17 Dec 2010 22:58:52 +0000 (14:58 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 17 Dec 2010 22:58:52 +0000 (14:58 -0800)
commit58f8f0e703234efbd915009d184dba7c3c90059b
treed9abf3f6d47ab1191079f5812c43df6f2150b5a5
parente468fe85d5a83fe1c5985100ec330708a318ba9f
datapath: Avoid calling flow_hash() twice for the same key.

This is a small optimization for the case where a new flow is being added
to the flow table.

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