summaryrefslogtreecommitdiff
path: root/datapath-windows/include
diff options
context:
space:
mode:
authorNithin Raju <nithin@vmware.com>2014-09-15 11:38:02 -0700
committerBen Pfaff <blp@nicira.com>2014-09-16 21:33:03 -0700
commit3245c4986b9396b130e42fbb7fe72e53733c1d53 (patch)
tree9ad8156b4020d18957ec52161b9bf362b484dd1a /datapath-windows/include
parent884c477fa87ee42f46937160caa35f3f983fe35c (diff)
downloadopenvswitch-3245c4986b9396b130e42fbb7fe72e53733c1d53.tar.gz
datapath-windows: use the Netlink set API and need new APIs
In this change: 1. we refactor the code that fills up information about the DP into a seprate function. 2. use the netlink set APIs to fill up the netlink attributes. 3. we define a OVS_DP_STATS to be a typedef of 'struct ovs_dp_stats' in keeping with the Windows kernel naming conventions. 4. In the absence of netlink set API, I had put in an ASSERT earlier that the output buffer should be limited to 512 bytes. This is not true anymore. The netlink set API checks for bounds of the buffer. Hence removed the ASSERT. Signed-off-by: Nithin Raju <nithin@vmware.com> Acked-by: Ankur Sharma <ankursharma@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath-windows/include')
-rw-r--r--datapath-windows/include/OvsDpInterfaceExt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/datapath-windows/include/OvsDpInterfaceExt.h b/datapath-windows/include/OvsDpInterfaceExt.h
index 877b2adee..64fd20e42 100644
--- a/datapath-windows/include/OvsDpInterfaceExt.h
+++ b/datapath-windows/include/OvsDpInterfaceExt.h
@@ -80,4 +80,6 @@ enum ovs_nl_mcast_attr {
OVS_NL_ATTR_MCAST_JOIN, /* (UINT8) 1/0 - Join/Unjoin */
};
+typedef struct ovs_dp_stats OVS_DP_STATS;
+
#endif /* __OVS_DP_INTERFACE_EXT_H_ */