ofproto-dpif: Implement translation of select groups.
authorSimon Horman <horms@verge.net.au>
Wed, 30 Oct 2013 09:17:19 +0000 (18:17 +0900)
committerBen Pfaff <blp@nicira.com>
Sun, 3 Nov 2013 02:18:40 +0000 (19:18 -0700)
commitfe7e574970ae0ba1b8515a329c9ce88f22365b95
tree6c5c78f05c112cd98a6d58b7d1eaee6f2418821b
parentdd8cd4b43706d0b7c7aea9c0bfd2eeba42b264f2
ofproto-dpif: Implement translation of select groups.

Select bucket from those that are alive based on a hash of the destination
ethernet address of the packet.

Support for weights is proposed by a subsequent patch.

The selection is based on a hash of the destination ethernet
address of the flow. It should be possible to extend
this to cover a hash of user-specified elements of the flow.

Signed-off-by: Simon Horman <horms@verge.net.au>
[blp@nicira.com replaced bucket selection by "highest random weight"
 method]
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif-xlate.c
ofproto/ofproto.c
tests/ofproto-dpif.at
tests/ofproto.at