]> git.lizzy.rs Git - plan9front.git/commitdiff
sdvirtio: accept multi-queue devices
authorOri Bernstein <ori@eigenstate.org>
Mon, 31 May 2021 17:59:45 +0000 (10:59 -0700)
committerOri Bernstein <ori@eigenstate.org>
Mon, 31 May 2021 17:59:45 +0000 (10:59 -0700)
Sdvirtio supports multiple queues per device.
We only use one queue, but we shouldn't skip the
devices because of that.

sys/src/9/pc/sdvirtio.c

index e5a60767f616890cdb70d6ab31d596d5204b97bd..4b422766717ab2ca3b638b691c1401956870d6db 100644 (file)
@@ -611,7 +611,7 @@ viopnp(void)
 
        id = 'F';
        for(vd =  viopnpdevs(TypBlk); vd; vd = vd->next){
-               if(vd->nqueue != 1)
+               if(vd->nqueue == 0)
                        continue;
 
                if((s = malloc(sizeof(*s))) == nil)