datapath: Avoid possibility of negative 'n_ports' in struct odp_portvec.
authorBen Pfaff <blp@nicira.com>
Thu, 13 May 2010 18:04:56 +0000 (11:04 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 13 May 2010 22:29:47 +0000 (15:29 -0700)
commit1da3c6a0500a6dae270c918d5c85c60682ba6036
treefeb84eb9fe8da89a1cf8bf6d551508e2f95d623c
parent6d7568dc38fb832b7e152c184b0bdfdca6bb9527
datapath: Avoid possibility of negative 'n_ports' in struct odp_portvec.

'n_ports' should never be negative so it's better to use an unsigned type.

Suggested-by: Jesse Gross <jesse@nicira.com>
include/openvswitch/datapath-protocol.h