linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Question on inline support
@ 2018-05-29 17:33 Steve Wise
  2018-05-29 17:44 ` hch
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Wise @ 2018-05-29 17:33 UTC (permalink / raw)


Hey guys,

While testing the nvme rdma target with inline_data_size=0 for my patch
series [1], I found that the nvme host side rejected the queue
connections with this error:

"nvme nvme0: Mandatory keyed sgls are not support"

Due to this code in nvme/host/rdma.c:

?????? /* sanity check keyed sgls */
?????? if (!(ctrl->ctrl.sgls & (1 << 20))) {
?????????????? dev_err(ctrl->ctrl.device, "Mandatory keyed sgls are not
support\n");
?????????????? ret = -EINVAL;
?????????????? goto out_remove_admin_queue;
?????? }

Because the target side only sets bit 20 if inline_data_size is > 0, in
nvme/target/admin_cmd.c:

??????? if (ctrl->ops->sqe_inline_size)
??????????????? id->sgls |= cpu_to_le32(1 << 20);


I think the host-side code can be removed, yes?? I don't see why it
shouldn't be supported.? In fact, I removed it and things appear to work
just fine when I disable inline on the target.

Thanks,

Steve.

[1] http://lists.infradead.org/pipermail/linux-nvme/2018-May/017554.html

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

end of thread, other threads:[~2018-05-29 18:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-29 17:33 Question on inline support Steve Wise
2018-05-29 17:44 ` hch
2018-05-29 17:48   ` Steve Wise
2018-05-29 18:33     ` Steve Wise

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).