ofproto: Split add_flow().
authorJarno Rajahalme <jrajahalme@nicira.com>
Fri, 29 May 2015 18:28:39 +0000 (11:28 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Tue, 2 Jun 2015 01:07:39 +0000 (18:07 -0700)
commitc84d8691141fa698100480043ace76c553fff280
treebe82c3b42f10a930092c23a736356a6eac54fc39
parentdd27be824c36938b773c42348547eae48168ea66
ofproto: Split add_flow().

Split add_flow() to add_flow_begin() which does all the error
checking, and add_flow_finish() which can not fail.

Since we still want to send an error response for an unknown
'buffer_id', send_buffered_packet() now send the error response
itself.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto.c