From: james.smart@broadcom.com (James Smart) Date: Mon, 5 Aug 2019 09:31:21 -0700 Subject: [PATCH 1/2] nvme-fabrics: Add type of service (TOS) configuration In-Reply-To: <1564912530-15404-1-git-send-email-israelr@mellanox.com> References: <1564912530-15404-1-git-send-email-israelr@mellanox.com> Message-ID: <0fb2cf8c-3657-31bf-0df5-ee2495282f57@broadcom.com> On 8/4/2019 2:55 AM, Israel Rukshin wrote: > TOS is user-defined and needs to be configured via nvme-cli. > It must be set before initiating any traffic and once set the TOS > cannot be changed. > > Signed-off-by: Israel Rukshin > --- > drivers/nvme/host/fabrics.c | 16 +++++++++++++++- > drivers/nvme/host/fabrics.h | 3 +++ > 2 files changed, 18 insertions(+), 1 deletion(-) > > diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c > index 5838f7cd53ac..dbce7ffe6c2c 100644 > --- a/drivers/nvme/host/fabrics.c > +++ b/drivers/nvme/host/fabrics.c > @@ -611,6 +611,7 @@ static const match_table_t opt_tokens = { > { NVMF_OPT_DATA_DIGEST, "data_digest" }, > { NVMF_OPT_NR_WRITE_QUEUES, "nr_write_queues=%d" }, > { NVMF_OPT_NR_POLL_QUEUES, "nr_poll_queues=%d" }, > + { NVMF_OPT_TOS, "tos=%d" }, > { NVMF_OPT_ERR, NULL } > }; > I think we need to create a framework for transport-specific options.? Keeping them at the same flat level as the generic options isn't a great idea as they start to grow and always modifying core for a transport option isn't good either. How about we start the convention ":