ofproto: Index flows by cookie.
authorJarno Rajahalme <jarno.rajahalme@nsn.com>
Tue, 18 Jun 2013 16:48:14 +0000 (19:48 +0300)
committerBen Pfaff <blp@nicira.com>
Tue, 18 Jun 2013 17:42:06 +0000 (10:42 -0700)
commit98eaac36fc96c5168e76fd039d3d4aea97b6aa56
tree8922b29c61e78e0c67447a710a5ce14a78edb1b9
parent822b7f52108e1936f68fe2f726d0796df1b19903
ofproto: Index flows by cookie.

The simplest way for an OpenFlow controller to refer to a (set of) flows
is by a controller-issued flow cookie.  Make this fast by inserting flows
to a hash index, and use that when flows are queried, deleted, or modified
with a full cookie mask.

Signed-off-by: Jarno Rajahalme <jarno.rajahalme@nsn.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-provider.h
ofproto/ofproto.c