ofproto: Use OFPRR_GROUP_DELETE
authorSimon Horman <horms@verge.net.au>
Fri, 30 May 2014 08:14:14 +0000 (17:14 +0900)
committerBen Pfaff <blp@nicira.com>
Wed, 11 Jun 2014 17:47:18 +0000 (10:47 -0700)
commitcc40d06bf5ca3cdd12911b58ea8eb1cad57c637f
treefd931aaa8913cba2f2a31797ba24ec88e31dc498
parente5e4b47cc244c0d7ee404d105a2f22d0b327ee23
ofproto: Use OFPRR_GROUP_DELETE

Use OFPRR_GROUP_DELETE as the reason for deleting flows due
to the removal of a group that they use.

This implementation adds an delete_reason member to struct ofputil_flow_mod
as a convenient way to set the reason used by delete_flows__() when it is
called indirectly from delete_group__().

Signed-off-by: Simon Horman <horms@verge.net.au>
[blp@nicira.com initialized the new member in a few more places]
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/learn.c
lib/ofp-parse.c
lib/ofp-util.c
lib/ofp-util.h
ofproto/ofproto.c
tests/ofproto.at
utilities/ovs-ofctl.c