diff options
author | Ben Pfaff <blp@nicira.com> | 2011-01-26 13:41:54 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-01-28 12:17:03 -0800 |
commit | 982b88105d0a82ab90b233bf68e4e51ac9cddd23 (patch) | |
tree | b1536eabccb54f343b51b30d86ac3b50f39bfbfe /lib/dpif.h | |
parent | ed099e921e30d3720c5ad7d1b4f911bb23911bf3 (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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. |