All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sagi Grimberg <sagig-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
To: Jason Gunthorpe
	<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>,
	Sagi Grimberg <sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Chuck Lever <chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>,
	Eli Cohen <eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH rdma-rc 2/4] IB/iser: Add module parameter for always register memory
Date: Mon, 21 Sep 2015 19:42:56 +0300	[thread overview]
Message-ID: <56003390.60002@dev.mellanox.co.il> (raw)
In-Reply-To: <20150921163922.GC3993-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>

On 9/21/2015 7:39 PM, Jason Gunthorpe wrote:
> On Sun, Sep 20, 2015 at 12:52:45PM +0300, Sagi Grimberg wrote:
>> This module parameter forces memory registration even for
>> a continuous memory region. It is true by default as sending
>> an all-physical rkey with remote permissions might be insecure.
>>
>> Signed-off-by: Sagi Grimberg <sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
>>   drivers/infiniband/ulp/iser/iscsi_iser.c  |  5 +++++
>>   drivers/infiniband/ulp/iser/iscsi_iser.h  |  1 +
>>   drivers/infiniband/ulp/iser/iser_memory.c | 18 ++++++++++++------
>>   drivers/infiniband/ulp/iser/iser_verbs.c  | 21 +++++++++++++--------
>>   4 files changed, 31 insertions(+), 14 deletions(-)
>>
>> diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c
>> index 1ace5d83a4d7..bad9dd701d3c 100644
>> +++ b/drivers/infiniband/ulp/iser/iscsi_iser.c
>> @@ -97,6 +97,11 @@ unsigned int iser_max_sectors = ISER_DEF_MAX_SECTORS;
>>   module_param_named(max_sectors, iser_max_sectors, uint, S_IRUGO | S_IWUSR);
>>   MODULE_PARM_DESC(max_sectors, "Max number of sectors in a single scsi command (default:1024");
>>
>> +bool iser_always_reg = true;
>> +module_param_named(always_register, iser_always_reg, bool, S_IRUGO);
>> +MODULE_PARM_DESC(always_register,
>> +		 "Always register memory, even for continuous memory regions (default:false)");
>                                                                               ^^^^^^^^^^^^^^^
> Description doesn't match implementation?

Yea... I noticed that too...

v1 is already on the list.

Thanks for commenting.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2015-09-21 16:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-20  9:52 [PATCH rdma-rc 0/4] Remove mlx5 support for IB_DEVICE_LOCAL_DMA_LKEY Sagi Grimberg
2015-09-20  9:52 ` [PATCH rdma-rc 1/4] xprtrdma: Remove ib_get_dma_mr calls Sagi Grimberg
2015-09-20  9:52   ` Sagi Grimberg
2015-09-20 10:12   ` Sagi Grimberg
2015-09-20 10:12     ` Sagi Grimberg
     [not found] ` <1442742767-8755-1-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-09-20  9:52   ` [PATCH rdma-rc 2/4] IB/iser: Add module parameter for always register memory Sagi Grimberg
     [not found]     ` <1442742767-8755-3-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-09-21 16:39       ` Jason Gunthorpe
     [not found]         ` <20150921163922.GC3993-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-09-21 16:42           ` Sagi Grimberg [this message]
2015-09-20  9:52   ` [PATCH rdma-rc 3/4] IB/mlx5: Remove support for IB_DEVICE_LOCAL_DMA_LKEY Sagi Grimberg
2015-09-20  9:52   ` [PATCH rdma-rc 4/4] IB/mlx5: Remove pa_lkey usages Sagi Grimberg
2015-09-21 16:41   ` [PATCH rdma-rc 0/4] Remove mlx5 support for IB_DEVICE_LOCAL_DMA_LKEY Jason Gunthorpe

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=56003390.60002@dev.mellanox.co.il \
    --to=sagig-ldsdmyg8hgv8yrgs2mwiifqbs+8scbdb@public.gmane.org \
    --cc=chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
    --cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.