aboutsummaryrefslogtreecommitdiff
path: root/lib/dpif.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-01-26 13:41:54 -0800
committerBen Pfaff <blp@nicira.com>2011-01-28 12:17:03 -0800
commit982b88105d0a82ab90b233bf68e4e51ac9cddd23 (patch)
treeb1536eabccb54f343b51b30d86ac3b50f39bfbfe /lib/dpif.h
parented099e921e30d3720c5ad7d1b4f911bb23911bf3 (diff)
datapath: Convert upcalls and ODP_EXECUTE to use AF_NETLINK socket layer.
This commit calls genl_lock() and thus doesn't support Linux before 2.6.35, which wasn't exported before that version. That problem will be fixed once the whole userspace interface transitions to Generic Netlink a few commits from now. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'lib/dpif.h')
-rw-r--r--lib/dpif.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dpif.h b/lib/dpif.h
index 3534df7d..d25d20f3 100644
--- a/lib/dpif.h
+++ b/lib/dpif.h
@@ -153,7 +153,8 @@ int dpif_execute(struct dpif *, const struct nlattr *actions,
enum dpif_upcall_type {
DPIF_UC_MISS, /* Miss in flow table. */
DPIF_UC_ACTION, /* ODPAT_CONTROLLER action. */
- DPIF_UC_SAMPLE /* Packet sampling. */
+ DPIF_UC_SAMPLE, /* Packet sampling. */
+ DPIF_N_UC_TYPES
};
/* A packet passed up from the datapath to userspace.