datapath: Change dp_idx to dp_ifindex, the ifindex of the local port.
[sliver-openvswitch.git] / lib / dpif-linux.h
index 30e927f..bd7b07c 100644 (file)
 #define DPIF_LINUX_H 1
 
 #include <stdbool.h>
+#include <stdint.h>
 #include "openvswitch/datapath-protocol.h"
 
 struct ofpbuf;
 
 struct dpif_linux_vport {
-    /* ioctl command argument. */
-    int cmd;
+    /* Generic Netlink header. */
+    uint8_t cmd;
 
     /* odp_vport header. */
-    uint32_t dp_idx;
+    int dp_ifindex;
     uint32_t port_no;                      /* UINT32_MAX if unknown. */
     enum odp_vport_type type;