summaryrefslogtreecommitdiff
path: root/include/openvswitch
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-01-17 14:40:58 -0800
committerBen Pfaff <blp@nicira.com>2011-01-27 21:08:38 -0800
commitbc4a05c639ee3789d009bb6143345cf121b2d4d4 (patch)
treee4e34cbfab0805f167b14c7ffc5ba47743b41bfb /include/openvswitch
parent996c1b3d7a4d6e82e1831ff8821e5fd7e1a5522c (diff)
downloadopenvswitch-bc4a05c639ee3789d009bb6143345cf121b2d4d4.tar.gz
datapath: Change ODP_FLOW_GET to retrieve only a single flow at a time.
This brings the code closer to what the Netlink interface will need to implement. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'include/openvswitch')
-rw-r--r--include/openvswitch/datapath-protocol.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/openvswitch/datapath-protocol.h b/include/openvswitch/datapath-protocol.h
index ec089bfe2..54c39d1ff 100644
--- a/include/openvswitch/datapath-protocol.h
+++ b/include/openvswitch/datapath-protocol.h
@@ -88,7 +88,7 @@
#define ODP_VPORT_SET _IOR('O', 22, struct odp_vport)
#define ODP_VPORT_DUMP _IOWR('O', 10, struct odp_vport)
-#define ODP_FLOW_GET _IOWR('O', 13, struct odp_flowvec)
+#define ODP_FLOW_GET _IOWR('O', 13, struct odp_flow)
#define ODP_FLOW_PUT _IOWR('O', 14, struct odp_flow)
#define ODP_FLOW_DUMP _IOWR('O', 15, struct odp_flow_dump)
#define ODP_FLOW_FLUSH _IO('O', 16)
@@ -214,7 +214,6 @@ struct odp_flow_stats {
uint32_t used_nsec;
uint8_t tcp_flags;
uint8_t reserved;
- uint16_t error; /* Used by ODP_FLOW_GET. */
};
enum odp_key_type {
@@ -296,11 +295,6 @@ struct odp_flow_put {
uint32_t flags;
};
-struct odp_flowvec {
- struct odp_flow *flows;
- uint32_t n_flows;
-};
-
/* ODP_FLOW_DUMP argument.
*
* This is used to iterate through the flow table flow-by-flow. Each