ofproto: Report correct error for emergency flow with timeout.
authorBen Pfaff <blp@nicira.com>
Thu, 1 Nov 2012 07:22:41 +0000 (00:22 -0700)
committerBen Pfaff <blp@nicira.com>
Sat, 8 Dec 2012 20:37:14 +0000 (12:37 -0800)
commitb5bf17dd74a4378a86985b12d055ce2a61498140
treed7c04479ef58d5f6e3f08cec018987e316d91a4d
parentc4069512603ea753576911da052b3f233026886d
ofproto: Report correct error for emergency flow with timeout.

The OpenFlow 1.0 specification says:

    Emergency flow mod messages must have timeout values set to zero.
    Otherwise, the switch must refuse the addition and respond with an
    ofp_error_msg with OFPET_FLOW_MOD_FAILED type and
    OFPFMFC_BAD_EMERG_TIMEOUT code.

but Open vSwitch reported OFPFMFC_TABLE_FULL in this case.  This commit
fixes the problem.

Fixes detailed_contr_sw_messages.EmerFlowTimeout failure in OFTest.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Kyle Mestery <kmestery@cisco.com>
lib/ofp-util.c