X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fdpif.h;h=fd05b2f20f35fbb3dce93c5e2dca3280f314762b;hb=2c57a420432de88b8a6f9ee54642c3841577ad7b;hp=a478db2c43040cb3f5fde3383741df0189e76985;hpb=ffcb9f6ebc6e2914ecbc27e964f7bef4730db642;p=sliver-openvswitch.git diff --git a/lib/dpif.h b/lib/dpif.h index a478db2c4..fd05b2f20 100644 --- a/lib/dpif.h +++ b/lib/dpif.h @@ -324,7 +324,6 @@ #include #include #include -#include #include "openflow/openflow.h" #include "netdev.h" #include "util.h" @@ -541,10 +540,10 @@ const char *dpif_upcall_type_to_string(enum dpif_upcall_type); /* A packet passed up from the datapath to userspace. * - * If 'key' or 'actions' is nonnull, then it points into data owned by - * 'packet', so their memory cannot be freed separately. (This is hardly a - * great way to do things but it works out OK for the dpif providers and - * clients that exist so far.) + * If 'key', 'actions', or 'userdata' is nonnull, then it points into data + * owned by 'packet', so their memory cannot be freed separately. (This is + * hardly a great way to do things but it works out OK for the dpif providers + * and clients that exist so far.) */ struct dpif_upcall { /* All types. */ @@ -554,7 +553,7 @@ struct dpif_upcall { size_t key_len; /* Length of 'key' in bytes. */ /* DPIF_UC_ACTION only. */ - uint64_t userdata; /* Argument to OVS_ACTION_ATTR_USERSPACE. */ + struct nlattr *userdata; /* Argument to OVS_ACTION_ATTR_USERSPACE. */ }; int dpif_recv_set(struct dpif *, bool enable);