From: swise@opengridcomputing.com (Steve Wise)
Subject: Question on inline support
Date: Tue, 29 May 2018 12:33:56 -0500 [thread overview]
Message-ID: <5276f947-0ccf-5d0e-53bc-724f65c1c837@opengridcomputing.com> (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
next reply other threads:[~2018-05-29 17:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-29 17:33 Steve Wise [this message]
2018-05-29 17:44 ` Question on inline support hch
2018-05-29 17:48 ` Steve Wise
2018-05-29 18:33 ` Steve Wise
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5276f947-0ccf-5d0e-53bc-724f65c1c837@opengridcomputing.com \
--to=swise@opengridcomputing.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).