It's d->req.nr_flags which is sent, not nr_flags. So it's this one which should be used to find the queues number.