2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

dpif: Improve abstraction by making 'run' and 'wait' functions per-dpif.

Until now, the dp_run() and dp_wait() functions had to be called at the top
level of the program because they applied to every open dpif.  By replacing
them by functions that take a specific dpif as an argument, we can call
them only from ofproto, which is currently the correct layer to deal with
dpifs.
This commit is contained in:
Ben Pfaff
2011-05-06 15:04:29 -07:00
parent fa066f015f
commit 640e1b2077
8 changed files with 56 additions and 80 deletions

View File

@@ -994,12 +994,12 @@ dpif_linux_recv_purge(struct dpif *dpif_)
const struct dpif_class dpif_linux_class = {
"system",
NULL, /* run */
NULL, /* wait */
dpif_linux_enumerate,
dpif_linux_open,
dpif_linux_close,
dpif_linux_destroy,
NULL, /* run */
NULL, /* wait */
dpif_linux_get_stats,
dpif_linux_get_drop_frags,
dpif_linux_set_drop_frags,