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.
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.