datapath: Avoid possibility of negative 'n_ports' in struct odp_portvec.
[sliver-openvswitch.git] / include / openvswitch / datapath-protocol.h
index 1c2dba9..0e8d5c9 100644 (file)
@@ -181,7 +181,7 @@ struct odp_port {
 
 struct odp_portvec {
     struct odp_port *ports;
-    int n_ports;
+    __u32 n_ports;
 };
 
 struct odp_port_group {