+#include <linux/if_link.h>
+#include <linux/netlink.h>
+
+#define ODP_DP_NEW _IOWR('O', 0, struct odp_datapath)
+#define ODP_DP_DEL _IOR('O', 1, struct odp_datapath)
+#define ODP_DP_GET _IOWR('O', 2, struct odp_datapath)
+#define ODP_DP_SET _IOWR('O', 3, struct odp_datapath)
+#define ODP_DP_DUMP _IOWR('O', 4, struct odp_datapath)
+
+#define ODP_VPORT_NEW _IOR('O', 7, struct odp_vport)
+#define ODP_VPORT_DEL _IOR('O', 8, struct odp_vport)
+#define ODP_VPORT_GET _IOWR('O', 9, struct odp_vport)
+#define ODP_VPORT_SET _IOR('O', 22, struct odp_vport)
+#define ODP_VPORT_DUMP _IOWR('O', 10, struct odp_vport)
+
+#define ODP_FLOW_NEW _IOWR('O', 13, struct odp_flow)
+#define ODP_FLOW_DEL _IOWR('O', 14, struct odp_flow)
+#define ODP_FLOW_GET _IOWR('O', 15, struct odp_flow)
+#define ODP_FLOW_SET _IOWR('O', 16, struct odp_flow)
+#define ODP_FLOW_DUMP _IOWR('O', 17, struct odp_flow)
+#define ODP_FLOW_FLUSH _IO('O', 19)
+
+/**
+ * struct odp_header - header for ODP Generic Netlink messages.
+ * @dp_idx: Number of datapath to which the packet belongs.
+ *
+ * Attributes following the header are specific to a particular ODP Generic
+ * Netlink family, but all of the ODP families use this header.
+ */
+struct odp_header {
+ uint32_t dp_idx;
+};
+\f
+/**
+ * struct odp_datapath - header with basic information about a datapath.
+ * @dp_idx: Datapath index (-1 to make a request not specific to a datapath).
+ * @len: Length of this structure plus the Netlink attributes following it.
+ * @total_len: Total space available for kernel reply to request.
+ *
+ * Followed by &struct nlattr attributes, whose types are drawn from
+ * %ODP_DP_ATTR_*, up to a length of @len bytes including the &struct
+ * odp_datapath header.
+ */
+struct odp_datapath {
+ int32_t dp_idx;
+ uint32_t len;
+ uint32_t total_len;
+};