datapath: Convert ODP_FLOW_* and ODP_EXECUTE to put dp_idx into message.
authorBen Pfaff <blp@nicira.com>
Wed, 19 Jan 2011 00:54:27 +0000 (16:54 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 28 Jan 2011 05:08:40 +0000 (21:08 -0800)
commit9c52546b52018970d97b33b31a0578497663737a
tree3b66262dcd8c1ab702f62eadfacfef0bdb3b4e9c
parent693c4a01124ec5ad9253f8cfcfd99075a9d637f6
datapath: Convert ODP_FLOW_* and ODP_EXECUTE to put dp_idx into message.

When the datapath moves to the Netlink protocol it won't have a minor
number to use, so we have to put the dp_idx in the message.

This also changes the kernel implementation of ODP_FLOW_FLUSH to do the
datapath locking inside flush_flows() instead of inside openvswitch_ioctl()
but doesn't change that command's userspace interface, which still passes
a datapath number as the ioctl argument.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c
datapath/odp-compat.h
include/openvswitch/datapath-protocol.h
lib/dpif-linux.c