From: keith.busch@intel.com (Keith Busch)
Subject: [PATCH 1/2] nvmet: make MDTS value configurable
Date: Sun, 31 Mar 2019 21:10:37 -0600 [thread overview]
Message-ID: <20190401031036.GB11565@localhost.localdomain> (raw)
In-Reply-To: <9abfa47a-3374-a1a0-8370-1096d02743d0@suse.com>
On Sun, Mar 31, 2019@07:02:40PM -0700, Hannes Reinecke wrote:
> > I think it's more of a ctrl/nvmet_port configuration than a subsystem.
> >
> > For example if you have 2 HCAs, one is super strong and can transfer
> > upto 8MB and the second is old model and can transfer upto 64KiB.
> >
> > do
> >
> > id->mdts = ctrl->ops->port_mdts(req->port);
> >
> > and inside the implementation you can do
> >
> > min_not_zero(max_port_hca_cap_in_mdts_units, mdts_configfs_val);
> >
> > and it will fix the comment that is written above (we're not really
> > unlimited).
> >
> > this way we're using the low level device characteristics and also cover
> > the bio split test.
> >
> > thoughts ?
> >
> >
> Yeah, true, it should be a port configuration.
>
> I'll be updating the patch.
Wouldn't this indicate MDTS should be driven from hardware constraints
rather than user tunable knobs? I don't think we should have user
parameters if their only purpose is to test how host drivers react
to them. It's okay if they've a functional purpose, but there are so
many adjustable nvme parameters, this is a bit of a slippery slope if we
want to turn the nvme target driver into a host driver test vehicle.
next prev parent reply other threads:[~2019-04-01 3:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-29 12:04 [PATCH 0/2] nvmet: add some more configfs attributes Hannes Reinecke
2019-03-29 12:04 ` [PATCH 1/2] nvmet: make MDTS value configurable Hannes Reinecke
2019-03-29 17:27 ` Heitke, Kenneth
2019-03-31 15:04 ` Max Gurtovoy
2019-04-01 2:02 ` Hannes Reinecke
2019-04-01 3:10 ` Keith Busch [this message]
2019-04-01 11:48 ` Hannes Reinecke
2019-04-02 12:06 ` Max Gurtovoy
2019-04-02 23:31 ` Keith Busch
2019-04-03 14:53 ` Christoph Hellwig
2019-03-29 12:04 ` [PATCH 2/2] nvmet: make CNTLID range configurable Hannes Reinecke
2019-04-03 18:11 ` Christoph Hellwig
2019-04-03 22:13 ` Hannes Reinecke
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=20190401031036.GB11565@localhost.localdomain \
--to=keith.busch@intel.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