dpif: Change provider interface to consistently use operation structs.
authorBen Pfaff <blp@nicira.com>
Mon, 26 Dec 2011 22:39:03 +0000 (14:39 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 16 Jan 2012 21:37:27 +0000 (13:37 -0800)
commit89625d1efb32461071837b5e81c1238b4ca63387
tree4c12ac8197131a59b0a2c5108f850c660e1e22b8
parentc2b565b54e36bc33d0406afb225c9bf3d01405ef
dpif: Change provider interface to consistently use operation structs.

Until now, a "flow put" has represented its parameters in two different
ways, depending on whether it was coming from dpif_flow_put() or from
dpif_operate(), and similarly for an "execute" operation.  This commit
adopts the operation struct consistently within the dpif provider
interface, which seems cleaner.

This commit also factors out logging for flow puts and executes, which
is useful in the following commit.

This doesn't change the dpif client interface, since the two forms are
more convenient for clients than always filling out an operation struct.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/dpif-linux.c
lib/dpif-netdev.c
lib/dpif-provider.h
lib/dpif.c