From: Simon Horman Date: Tue, 4 Sep 2012 06:52:00 +0000 (+0900) Subject: ofp-errors: Remove OFPERR_NXFMFC_GROUPS_NOT_SUPPORTED X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb9515e1fd7f60d9720ccdecd3cb23c7b852f045;p=openvswitch ofp-errors: Remove OFPERR_NXFMFC_GROUPS_NOT_SUPPORTED OFPERR_NXFMFC_GROUPS_NOT_SUPPORTED is currently only used in paths which are part of a non-NX extension portions of the Open Flow 1.1+ implementation. After recent discussion it has been decided to attempt to only use standardised, albeit lest-specify, errors unless errors arise from use of an NX extension. With the above in mind it seems appropriate to: * Use OFPERR_OFPFMFC_UNKNOWN in place of OFPERR_NXFMFC_GROUPS_NOT_SUPPORTED. * Remove OFPERR_NXFMFC_GROUPS_NOT_SUPPORTED as it is no longer used. An unfortunate side-effect of this change is that the error for the case in question is now less-specific. Signed-off-by: Simon Horman Signed-off-by: Ben Pfaff --- diff --git a/lib/ofp-errors.h b/lib/ofp-errors.h index 4d17ba95..69ada40e 100644 --- a/lib/ofp-errors.h +++ b/lib/ofp-errors.h @@ -337,9 +337,6 @@ enum ofperr { * extension is enabled. */ OFPERR_NXFMFC_BAD_TABLE_ID, - /* NX1.0+(3,258). 'out_group' specified but groups not yet supported. */ - OFPERR_NXFMFC_GROUPS_NOT_SUPPORTED, - /* ## ---------------------- ## */ /* ## OFPET_GROUP_MOD_FAILED ## */ /* ## ---------------------- ## */ diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 6622b833..11781b6f 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -1171,7 +1171,7 @@ ofputil_decode_flow_mod(struct ofputil_flow_mod *fm, return error; } if (ofm->out_group != htonl(OFPG_ANY)) { - return OFPERR_NXFMFC_GROUPS_NOT_SUPPORTED; + return OFPERR_OFPFMFC_UNKNOWN; } fm->flags = ntohs(ofm->flags); } else { @@ -1410,7 +1410,7 @@ ofputil_decode_ofpst11_flow_request(struct ofputil_flow_stats_request *fsr, return error; } if (ofsr->out_group != htonl(OFPG11_ANY)) { - return OFPERR_NXFMFC_GROUPS_NOT_SUPPORTED; + return OFPERR_OFPFMFC_UNKNOWN; } fsr->cookie = ofsr->cookie; fsr->cookie_mask = ofsr->cookie_mask;