From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ira Weiny Subject: Re: [PATCH V3 6/8] infiniband-diags: Add m_key option to config file Date: Thu, 31 May 2012 15:22:28 -0700 Message-ID: <20120531152228.d19fe2fc.weiny2@llnl.gov> References: <1338398414.11948.29.camel@auk75.llnl.gov> <1338398497-12444-1-git-send-email-foraker1@llnl.gov> <1338398497-12444-6-git-send-email-foraker1@llnl.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1338398497-12444-6-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jim Foraker Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org On Wed, 30 May 2012 10:21:35 -0700 Jim Foraker wrote: > > Signed-off-by: Jim Foraker Thanks, applied. Ira > --- > etc/ibdiag.conf | 2 ++ > src/ibdiag_common.c | 2 ++ > 2 files changed, 4 insertions(+) > > diff --git a/etc/ibdiag.conf b/etc/ibdiag.conf > index 77f3ce9..2a2334f 100644 > --- a/etc/ibdiag.conf > +++ b/etc/ibdiag.conf > @@ -15,3 +15,5 @@ > # Default = true > #MLX_EPI=false > > +# define a default m_key > +#m_key=0x00 > diff --git a/src/ibdiag_common.c b/src/ibdiag_common.c > index 069f6e5..d7d784f 100644 > --- a/src/ibdiag_common.c > +++ b/src/ibdiag_common.c > @@ -157,6 +157,8 @@ void read_ibdiag_config(const char *file) > } else { > ibd_ibnetdisc_flags &= ~IBND_CONFIG_MLX_EPI; > } > + } else if (strncmp(name, "m_key", strlen("m_key")) == 0) { > + ibd_mkey = strtoull(val_str, 0, 0); > } > } > > -- > 1.7.9.2 > -- 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