aboutsummaryrefslogtreecommitdiff
path: root/lib/dpif-linux.c
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 /lib/dpif-linux.c
parent996c1b3d7a4d6e82e1831ff8821e5fd7e1a5522c (diff)
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 'lib/dpif-linux.c')
-rw-r--r--lib/dpif-linux.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c
index 6e85d61a..e0619b58 100644
--- a/lib/dpif-linux.c
+++ b/lib/dpif-linux.c
@@ -459,12 +459,9 @@ dpif_linux_port_poll_wait(const struct dpif *dpif_)
}
static int
-dpif_linux_flow_get(const struct dpif *dpif_, struct odp_flow flows[], int n)
+dpif_linux_flow_get(const struct dpif *dpif_, struct odp_flow *flow)
{
- struct odp_flowvec fv;
- fv.flows = flows;
- fv.n_flows = n;
- return do_ioctl(dpif_, ODP_FLOW_GET, &fv);
+ return do_ioctl(dpif_, ODP_FLOW_GET, flow);
}
static int