summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/Datapath.h
diff options
context:
space:
mode:
authorNithin Raju <nithin@vmware.com>2015-04-28 14:35:37 -0700
committerBen Pfaff <blp@nicira.com>2015-04-29 07:35:50 -0700
commita51a50862a9b9933067fef7651783b2a611f524a (patch)
treecf74e348e667a367c09e4b8cf263dc54a0090d28 /datapath-windows/ovsext/Datapath.h
parent9719aee5c7bf4d3b99a0b25eecf86ea0eef652e8 (diff)
downloadopenvswitch-a51a50862a9b9933067fef7651783b2a611f524a.tar.gz
ovs-hyperv: make kernel return values netlink socket like
In this patch, we make changes to usersapce as well as kernel datapath on hyperv to make it more netlink socket like. Previously, the kernel datapath did not distinguish between "transport errors" and other errors. Netlink semantics dictate that netlink functions should only return an error only in the case of a "transport error" which is generally something fatal. Eg. failure to communicate with the OVS module, or an invalid command altogether. Other errors such as an unsupported action, or an invalid flow key is not considered a "transport error", and in such cases, netlink functions are to return success with a 'struct nlmsgerr' populated in the output buffer. This patch implements these semantics. Signed-off-by: Nithin Raju <nithin@vmware.com> Acked-by: Sorin Vinturis <svinturis@cloudbasesolutions.com> Reported-at: https://github.com/openvswitch/ovs-issues/issues/72 Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath-windows/ovsext/Datapath.h')
-rw-r--r--datapath-windows/ovsext/Datapath.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/datapath-windows/ovsext/Datapath.h b/datapath-windows/ovsext/Datapath.h
index 863afc4ca..dbc9dea58 100644
--- a/datapath-windows/ovsext/Datapath.h
+++ b/datapath-windows/ovsext/Datapath.h
@@ -32,8 +32,6 @@
#define OVS_READ_DEV_OP (1 << 0)
#define OVS_WRITE_DEV_OP (1 << 1)
#define OVS_TRANSACTION_DEV_OP (1 << 2)
-#define OVS_READ_EVENT_DEV_OP (1 << 3)
-#define OVS_READ_PACKET_DEV_OP (1 << 4)
typedef struct _OVS_DEVICE_EXTENSION {
INT numberOpenInstance;