block/nvme: Use unsigned integer for queue counter/size
commit1b539bd6dbe1459f160e25610ec2fc3388f700e8
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 29 Oct 2020 09:32:50 +0000 (29 10:32 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 3 Nov 2020 19:06:21 +0000 (3 19:06 +0000)
treeedbef0008fff178a54677faaad90487a633d1adb
parent3214b0f0948d5e01ccca62730e60a69e2ded8774
block/nvme: Use unsigned integer for queue counter/size

We can not have negative queue count/size/index, use unsigned type.
Rename 'nr_queues' as 'queue_count' to match the spec naming.

Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201029093306.1063879-10-philmd@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
block/nvme.c
block/trace-events