From: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
To: 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 10:39:22 -0600 [thread overview]
Message-ID: <20150921163922.GC3993@obsidianresearch.com> (raw)
In-Reply-To: <1442742767-8755-3-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
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?
Jason
--
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
next prev parent reply other threads:[~2015-09-21 16:39 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 [this message]
[not found] ` <20150921163922.GC3993-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-09-21 16:42 ` Sagi Grimberg
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=20150921163922.GC3993@obsidianresearch.com \
--to=jgunthorpe-epgobjl8dl3ta4ec/59zmfatqe2ktcn/@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=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.