public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
To: Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Cc: Jim Foraker <foraker1-i2BcT+NCU+M@public.gmane.org>,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH V3.1 8/8] infiniband-diags: Add sa_smkey option to config file
Date: Thu, 31 May 2012 16:54:36 -0700	[thread overview]
Message-ID: <20120531165436.650d9fa5.weiny2@llnl.gov> (raw)
In-Reply-To: <4FC7FF07.6090207-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>

On Thu, 31 May 2012 19:30:15 -0400
Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:

> On 5/31/2012 6:25 PM, Ira Weiny wrote:
> > On Thu, 31 May 2012 07:56:17 -0400
> > Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:
> > 
> >> On 5/30/2012 6:15 PM, Jim Foraker wrote:
> >>> Defines a default for the smkey used in SA requests
> >>>
> >>> Signed-off-by: Jim Foraker <foraker1-i2BcT+NCU+M@public.gmane.org>
> >>> ---
> >>>  etc/ibdiag.conf     |    3 +++
> >>>  src/ibdiag_common.c |    3 +++
> >>>  2 files changed, 6 insertions(+)
> >>>
> >>> diff --git a/etc/ibdiag.conf b/etc/ibdiag.conf
> >>> index 2a2334f..9686d14 100644
> >>> --- a/etc/ibdiag.conf
> >>> +++ b/etc/ibdiag.conf
> >>> @@ -17,3 +17,6 @@
> >>>  
> >>>  # define a default m_key
> >>>  #m_key=0x00
> >>> +
> >>> +# default smkey to be used for SA requests
> >>> +#sa_key=0x00
> >>
> >> I think we're in for support questions here mostly around MCMemberRecord :-(
> >>
> >> If this is to be done, at a minimum, the change in admin expectation
> >> needs to be clearly documented in the infiniband-diags release notes.
> >> I'm not sure that's sufficient to have it noticed.
> >>
> > 
> > I will.  Also I have added the following patch to document the default better.
> 
> I meant the difference in the default behavior due to sakey now being 0
> in saquery. Before with OpenSM and the old saquery, one got all members
> of a multicast group whereas now with the new saquery one gets only one
> group member unless trust is configured.

Yes, I planned to mention the differences in the release notes.

As for the tool itself, I thought this patch was necessary to make it clear what the default was.  While it is painful that one will have to read the specification to see what is included with an "untrusted" request, I felt it was too much to try and document that fully.

Ira

> 
> -- Hal
> 
> > 
> > Ira
> > 
> > 
> > infiniband-diags: saquery clarify default smkey option value
> > 
> > Signed-off-by: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
> > ---
> >  doc/rst/saquery.8.in.rst |    5 ++++-
> >  src/saquery.c            |    4 +++-
> >  2 files changed, 7 insertions(+), 2 deletions(-)
> > 
> > diff --git a/doc/rst/saquery.8.in.rst b/doc/rst/saquery.8.in.rst
> > index 79c8bd3..1a11965 100644
> > --- a/doc/rst/saquery.8.in.rst
> > +++ b/doc/rst/saquery.8.in.rst
> > @@ -82,7 +82,10 @@ OPTIONS
> >  **--smkey <val>**
> >          use SM_Key value for the query. Will be used only with "trusted"
> >          queries.  If non-numeric value (like 'x') is specified then saquery
> > -        will prompt for a value.
> > +	will prompt for a value.
> > +	Default (when not specified here or in
> > +	@IBDIAG_CONFIG_PATH@/ibdiag.conf) is to use SM_Key == 0 (or
> > +	\"untrusted\")
> >  
> >  .. include:: common/opt_K.rst
> >  
> > diff --git a/src/saquery.c b/src/saquery.c
> > index 5f535fc..6e09374 100644
> > --- a/src/saquery.c
> > +++ b/src/saquery.c
> > @@ -1571,7 +1571,9 @@ int main(int argc, char **argv)
> >  		{"smkey", 4, 1, "<val>",
> >  		 "SA SM_Key value for the query."
> >  		 " If non-numeric value (like 'x') is specified then"
> > -		 " saquery will prompt for a value"},
> > +		 " saquery will prompt for a value. "
> > +		 " Default (when not specified here or in ibdiag.conf) is to "
> > +		 " use SM_Key == 0 (or \"untrusted\")"},
> >  		{"slid", 5, 1, "<lid>", "Source LID (PathRecord)"},
> >  		{"dlid", 6, 1, "<lid>", "Destination LID (PathRecord)"},
> >  		{"mlid", 7, 1, "<lid>", "Multicast LID (MCMemberRecord)"},
> 


-- 
Ira Weiny
Member of Technical Staff
Lawrence Livermore National Lab
925-423-8008
weiny2-i2BcT+NCU+M@public.gmane.org
--
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:[~2012-05-31 23:54 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-30 17:20 [PATCH v3 0/8] Mkey support in infiniband-diags Jim Foraker
     [not found] ` <1338398414.11948.29.camel-mxTxeWJot8FliZ7u+bvwcg@public.gmane.org>
2012-05-30 17:21   ` [PATCH V3 1/8] infiniband-diags: Obfuscate sensitive output by default Jim Foraker
     [not found]     ` <1338398497-12444-1-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org>
2012-05-30 17:21       ` [PATCH V3 2/8] infiniband-diags: install config file mode 400 Jim Foraker
     [not found]         ` <1338398497-12444-2-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org>
2012-05-31 22:15           ` Ira Weiny
2012-05-30 17:21       ` [PATCH V3 3/8] infiniband-diags/ibportstate.c: Display MKey, lease, and protect bits Jim Foraker
     [not found]         ` <1338398497-12444-3-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org>
2012-05-31 22:16           ` Ira Weiny
2012-05-30 17:21       ` [PATCH V3 4/8] infiniband-diags: Allow specification of an mkey to use on the command line Jim Foraker
     [not found]         ` <1338398497-12444-4-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org>
2012-05-31 11:48           ` Hal Rosenstock
     [not found]             ` <4FC75A97.7080106-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2012-05-31 15:18               ` Ira Weiny
2012-05-31 19:08               ` Jim Foraker
     [not found]                 ` <1338491297.19133.30.camel-mxTxeWJot8FliZ7u+bvwcg@public.gmane.org>
2012-05-31 19:11                   ` [PATCH V3.1 " Jim Foraker
     [not found]                     ` <1338491493-19714-1-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org>
2012-05-31 22:17                       ` Ira Weiny
2012-05-30 17:21       ` [PATCH V3 5/8] infiniband-diags/ibportstate.c: Support changing MKey, lease, and protect bits Jim Foraker
     [not found]         ` <1338398497-12444-5-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org>
2012-05-31 22:21           ` Ira Weiny
2012-05-30 17:21       ` [PATCH V3 6/8] infiniband-diags: Add m_key option to config file Jim Foraker
     [not found]         ` <1338398497-12444-6-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org>
2012-05-31 22:22           ` Ira Weiny
2012-05-30 17:21       ` [PATCH V3 7/8] ib-diags/saquery: Fix smkey handling Jim Foraker
     [not found]         ` <1338398497-12444-7-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org>
2012-05-30 22:14           ` [PATCH V3.1 " Jim Foraker
     [not found]             ` <1338416060-14025-1-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org>
2012-05-31 22:23               ` Ira Weiny
2012-05-30 17:21       ` [PATCH V3 8/8] infiniband-diags: Add sa_smkey option to config file Jim Foraker
     [not found]         ` <1338398497-12444-8-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org>
2012-05-30 18:06           ` Hal Rosenstock
     [not found]             ` <4FC66196.5030704-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2012-05-30 18:43               ` Jim Foraker
     [not found]                 ` <1338403407.17237.860.camel-mxTxeWJot8FliZ7u+bvwcg@public.gmane.org>
2012-05-30 22:17                   ` Jim Foraker
2012-05-30 22:15           ` [PATCH V3.1 " Jim Foraker
     [not found]             ` <1338416114-14068-1-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org>
2012-05-31 11:56               ` Hal Rosenstock
     [not found]                 ` <4FC75C61.7060408-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2012-05-31 22:25                   ` Ira Weiny
     [not found]                     ` <20120531152515.410a999a.weiny2-i2BcT+NCU+M@public.gmane.org>
2012-05-31 23:30                       ` Hal Rosenstock
     [not found]                         ` <4FC7FF07.6090207-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2012-05-31 23:54                           ` Ira Weiny [this message]
2012-05-31 22:23               ` Ira Weiny
2012-05-31 11:48       ` [PATCH V3 1/8] infiniband-diags: Obfuscate sensitive output by default Hal Rosenstock
     [not found]         ` <4FC75A8D.4080305-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2012-05-31 15:10           ` Ira Weiny
2012-05-31 22:15       ` Ira Weiny

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=20120531165436.650d9fa5.weiny2@llnl.gov \
    --to=weiny2-i2bct+ncu+m@public.gmane.org \
    --cc=foraker1-i2BcT+NCU+M@public.gmane.org \
    --cc=hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox