ethdev: move a queue id check to generic layer