datapath-windows: Append flow attribute key
authorAlin Serdean <aserdean@cloudbasesolutions.com>
Thu, 17 Sep 2015 15:01:48 +0000 (15:01 +0000)
committerBen Pfaff <blp@nicira.com>
Fri, 18 Sep 2015 18:36:09 +0000 (11:36 -0700)
commitb113e510aad5850e0ca9a217c387a974c9846b70
tree6550ef505c25197cde562f8330bad8f296bd5979
parentba4724916d37ffbbc04686cee8892a7dfed2d829
datapath-windows: Append flow attribute key

Currently when running the vswitch daemon we get a lot of messages of the
form:
2015-09-10T23:04:21Z|07255|dpif(revalidator11)|WARN|system@ovs-system: failed
to flow_del (Invalid argument).

The userspace expects after sending a delete flow command, to receive the flow
key of the deleted flow.

Currently we only send back the statiscs. This patch appends back the flow key
attribute for to the response buffer for the flow commands new, modify and
delete.

This patch also responds to the userspace with ENOENT in the case the flow
was not modified, deleted, created or retrieved.

Also incorporate some refactors.

Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Acked-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Acked-by: Sairam Venugopal <vsairam@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
datapath-windows/ovsext/Flow.c
datapath-windows/ovsext/Netlink/Netlink.c
datapath-windows/ovsext/Netlink/Netlink.h