public inbox for linux-nvme@lists.infradead.org
 help / color / mirror / Atom feed
* Clarification regarding "nvme discover" and setting IOSQES/IOCQES
@ 2021-02-08 16:32 Belanger, Martin
  2021-02-08 18:16 ` Sagi Grimberg
  0 siblings, 1 reply; 6+ messages in thread
From: Belanger, Martin @ 2021-02-08 16:32 UTC (permalink / raw)
  To: linux-nvme@lists.infradead.org

I'm using "nvme discover" to retrieve discovery log pages. And I'm using nvmet-tcp as the target.

From what I understand, "nvme discover" is supposed to set up a connection to a "Discovery Controller (DC)". During the exchange between the Host and the Target, there is a time when the Host must set CC.EN=1 to "enable" the DC. I'm using Wireshark to analyse the packets sent by the Host to the DC. I can see that when it's time to set CC.EN=1, the Host also sets two additional parameters: IOCQES=4 and IOSQES=6. 

In the NVME Base Specification, Figure 78 - Controller Configuration, these fields are defined as parameters to configure an "I/O Controller (IOC)" and not to configure a "Discovery Controller (DC)". In fact, it says that "If the controller does not support I/O queues, then this field shall be read-only with a value of 0h". 

The way I understand it, DCs do not support I/O queues. So why set IOCQES and IOSQES to non-zero values?

Thanks,
Martin
_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-02-09  3:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-08 16:32 Clarification regarding "nvme discover" and setting IOSQES/IOCQES Belanger, Martin
2021-02-08 18:16 ` Sagi Grimberg
     [not found]   ` <SJ0PR19MB454412891E589E03EF8DB948F28F9@SJ0PR19MB4544.namprd19.prod.outlook.com>
2021-02-08 18:59     ` Sagi Grimberg
2021-02-08 19:04       ` Keith Busch
2021-02-08 23:01         ` Sagi Grimberg
2021-02-09  3:28           ` Keith Busch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox