datapath: Avoid possibility of negative 'n_flows' in struct odp_flowvec.
authorBen Pfaff <blp@nicira.com>
Mon, 10 May 2010 20:53:26 +0000 (13:53 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 13 May 2010 22:29:46 +0000 (15:29 -0700)
commit6d7568dc38fb832b7e152c184b0bdfdca6bb9527
tree79d1fbce9f82ec99d46131ace8f678e285e591a2
parent436f27dd880bd4e1e1d06ca2744c875b01b9e1c1
datapath: Avoid possibility of negative 'n_flows' in struct odp_flowvec.

do_flowvec_ioctl() was checking for too-big 'n_flows' but not negative
'n_flows'.  We could add that check too, but 'n_flows' should never be
negative so it's better to just use an unsigned type.
datapath/datapath.c
include/openvswitch/datapath-protocol.h