ofproto: Improve OFPT_FLOW_MOD error reporting.
authorBen Pfaff <blp@nicira.com>
Fri, 20 Aug 2010 17:33:02 +0000 (10:33 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 20 Aug 2010 17:33:02 +0000 (10:33 -0700)
commitf669e7f77b8261a0ded00bdc76aad46b112d2819
tree2dd1f57fccd385c651c4d98ceafb81657e2a7f6e
parentce4e5963accb3655651170cc82f23c4745036826
ofproto: Improve OFPT_FLOW_MOD error reporting.

Error reporting to the controller for "flow_mod" operations was poor
because WDP was reporting errors as Unix errno values and nothing was
translating them into OpenFlow errors to send to the controller.  This
commit fixes the problem by making the functions in question instead use
OpenFlow error numbers and, in cases where there is no appropriate number,
using a vendor extension error number.
include/openflow/nicira-ext.h
ofproto/wdp-provider.h
ofproto/wdp-xflow.c