linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: Kamal Heib <kamalheib1@gmail.com>
Cc: linux-rdma@vger.kernel.org, Jason Gunthorpe <jgg@ziepe.ca>,
	Doug Ledford <dledford@redhat.com>,
	Bernard Metzler <bmt@zurich.ibm.com>
Subject: Re: [PATCH for-next v2] RDMA/siw: Fix setting active_{speed, width} attributes
Date: Wed, 19 Feb 2020 12:53:20 +0200	[thread overview]
Message-ID: <20200219105320.GJ15239@unreal> (raw)
In-Reply-To: <20200219102110.GA13582@kheib-workstation>

On Wed, Feb 19, 2020 at 12:21:10PM +0200, Kamal Heib wrote:
> On Wed, Feb 19, 2020 at 11:33:21AM +0200, Leon Romanovsky wrote:
> > On Wed, Feb 19, 2020 at 10:43:59AM +0200, Kamal Heib wrote:
> > > On Tue, Feb 18, 2020 at 06:58:47PM +0200, Leon Romanovsky wrote:
> > > > On Tue, Feb 18, 2020 at 11:59:11AM +0200, Kamal Heib wrote:
> > > > > Make sure to set the active_{speed, width} attributes to avoid reporting
> > > > > the same values regardless of the underlying device.
> > > > >
> > > > > Fixes: 303ae1cdfdf7 ("rdma/siw: application interface")
> > > > > Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
> > > > > ---
> > > > > V2: Change rc to rv.
> > > > > ---
> > > > >  drivers/infiniband/sw/siw/siw_verbs.c | 7 ++++---
> > > > >  1 file changed, 4 insertions(+), 3 deletions(-)
> > > > >
> > > > > diff --git a/drivers/infiniband/sw/siw/siw_verbs.c b/drivers/infiniband/sw/siw/siw_verbs.c
> > > > > index 73485d0da907..d5390d498c61 100644
> > > > > --- a/drivers/infiniband/sw/siw/siw_verbs.c
> > > > > +++ b/drivers/infiniband/sw/siw/siw_verbs.c
> > > > > @@ -165,11 +165,12 @@ int siw_query_port(struct ib_device *base_dev, u8 port,
> > > > >  		   struct ib_port_attr *attr)
> > > > >  {
> > > > >  	struct siw_device *sdev = to_siw_dev(base_dev);
> > > > > +	int rv;
> > > > >
> > > > >  	memset(attr, 0, sizeof(*attr));
> > > >
> > > > This line should go too. IB/core clears attr prior to call driver.
> > > >
> > > > Thanks
> > > >
> > >
> > > This can be done in a separate patch as this patch fixes a specific issue.
> >
> > Whatever works for you, if you don't value your own time, go for it,
> > do separate patch for every line you are changing. It just looks crazy
> > to see changes like this:
> >  * changed line
> >  * line to be changed, but not changed
> >  * another changed line
> >
> > Thanks
> >
>
> Leon, With all my respect, This isn't your decision what I do and when.

Please carefully reread my answer, I didn't say what and when you should
do, simply gave to you an explanation why request remove useless memeset
makes sense in the context of proposed patch.

Thanks

  reply	other threads:[~2020-02-19 10:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-18  9:59 [PATCH for-next v2] RDMA/siw: Fix setting active_{speed, width} attributes Kamal Heib
2020-02-18 15:06 ` Bernard Metzler
2020-02-18 16:58 ` Leon Romanovsky
2020-02-19  8:43   ` Kamal Heib
2020-02-19  9:33     ` Leon Romanovsky
2020-02-19 10:21       ` Kamal Heib
2020-02-19 10:53         ` Leon Romanovsky [this message]
2020-02-19 11:07           ` Gal Pressman
2020-02-19 11:13           ` Kamal Heib
2020-02-27 20:40 ` 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=20200219105320.GJ15239@unreal \
    --to=leon@kernel.org \
    --cc=bmt@zurich.ibm.com \
    --cc=dledford@redhat.com \
    --cc=jgg@ziepe.ca \
    --cc=kamalheib1@gmail.com \
    --cc=linux-rdma@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).