]> git.proxmox.com Git - mirror_ovs.git/commit
dpif-provider: Get rid of redundant operations.
authorBen Pfaff <blp@nicira.com>
Tue, 15 Jul 2014 23:09:40 +0000 (16:09 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 12 Aug 2014 16:59:42 +0000 (09:59 -0700)
commit1a0c894a2685f0cc0d19fc3caf69dd0d62b6b6b0
tree307250c1363858f1fe7dc140ab4f08fe4a220083
parent7b30b5eeedb55e6bccf562f2f93532a50a8446cd
dpif-provider: Get rid of redundant operations.

The dpif provider 'operate' call duplicates all of the features available
from the 'flow_put', 'flow_del', and 'execute' calls, yielding redundant
code in providers that support both mechanisms.  This change drops the
latter calls in favor of making every dpif provider support 'operate'.
The result is code that is overall less duplicative.

It might make sense to do the same with flow_get but so far 'operate'
doesn't support flow_get.

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