CPqD / ofsoftswitch13

OpenFlow 1.3 switch.
http://cpqd.github.com/ofsoftswitch13
304 stars 192 forks source link

Fix queue id check when looking up or adding new queues. #186

Closed ljerezchaves closed 9 years ago

ljerezchaves commented 9 years ago

This commit fixs a small bug when checking for valid queue id during add queue and queue lookup functions.

Note that struct sw_queue queues[NETDEV_MAX_QUEUES]; inside struct sw_port has a fixed number of NETDEV_MAX_QUEUES queues, ranging from 0 to NETDEV_MAX_QUEUES - 1.