ofproto-dpif-xlate: fix for group liveness propagation
authorLászló Sürü <laszlo.suru@ericsson.com>
Wed, 11 May 2016 08:46:33 +0000 (08:46 +0000)
committerJarno Rajahalme <jarno@ovn.org>
Wed, 11 May 2016 21:35:55 +0000 (14:35 -0700)
commit62e2e74667e5eb87b6e93395022498e3b5d1d575
tree49d2da37ec62d8e280dd01bfff2de5a339245c5d
parent7eca52f147eb332e3e66aa3e55e37bf9466009d5
ofproto-dpif-xlate: fix for group liveness propagation

According to OpenFlow v1.3.5 specification a group is considered live,
if it has at least one live bucket in it.  (6.5 Group Table
Modification Messages: "A group is considered live if a least one of
its buckets is live.")

However, OVS implementation incorrectly returns group as live when no
live bucket is found in group_is_alive() function of
ofproto-dpif-xlate.c.

Instead it should return true only if a live bucket is found (that is
!= NULL).

Signed-off-by: László Sűrű <laszlo.suru@ericsson.com>
Co-authored-by: Jan Scheurich <jan.scheurich@ericsson.com>
Signed-off-by: Jan Scheurich <jan.scheurich@ericsson.com>
Acked-by: Jarno Rajahalme <jarno@ovn.org>
ofproto/ofproto-dpif-xlate.c