public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Jason Gunthorpe <jgg-uk2M96/98Pc@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Yishai Hadas <yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH rdma-core] verbs: Remove comp_mask checks from verbs.h
Date: Mon, 25 Dec 2017 16:32:41 +0200	[thread overview]
Message-ID: <20171225143241.GJ2942@mtr-leonro.local> (raw)
In-Reply-To: <20171221171947.GK2942-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1210 bytes --]

On Thu, Dec 21, 2017 at 07:19:47PM +0200, Leon Romanovsky wrote:
> On Thu, Dec 21, 2017 at 09:24:42AM -0700, Jason Gunthorpe wrote:
> > On Thu, Dec 21, 2017 at 07:42:16AM +0200, Leon Romanovsky wrote:
> >
> > > Both these functions are performing their checks of cq_attr->comp_mask,
> > > but return different errno. I think that it is perfect timing to start
> > > organize and unite our return errors. They should return the same errno.
> >
> > Bugs bugs everywhere.. This is going to be another patch. I would drop
> > the errno set into check_comp_mask and change all comp_mask users to
> > call it, and probably drop the _RESERVED uglyness too, but another
> > patch.
> >
> > > > In the case of ibv_queryrt_values_ex, there is no check in the function
> > > > op, which is an ABI mistake. So move the check there.
> > >
> > > ibv_queryrt_values_ex -> ibv_query_rt_values_ex
> >
> > K.. Are you going to collect the loose patches on the list? Can you
> > fix the typo when you grab this one :)
>
> No problem, I scheduled for myself time on Sunday to sync list,
> patchworks and rdma-core.

I fixed the patch and changed it to preserve the errno in mlx4 to be EINVAL.

Thanks

>
> Thanks
>
> >
> > Jason



[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      parent reply	other threads:[~2017-12-25 14:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-20 23:13 [PATCH rdma-core] verbs: Remove comp_mask checks from verbs.h Jason Gunthorpe
     [not found] ` <20171220231350.GA19130-uk2M96/98Pc@public.gmane.org>
2017-12-21  5:42   ` Leon Romanovsky
     [not found]     ` <20171221054216.GF2942-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-12-21 16:24       ` Jason Gunthorpe
     [not found]         ` <20171221162442.GC20015-uk2M96/98Pc@public.gmane.org>
2017-12-21 17:19           ` Leon Romanovsky
     [not found]             ` <20171221171947.GK2942-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-12-25 14:32               ` Leon Romanovsky [this message]

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=20171225143241.GJ2942@mtr-leonro.local \
    --to=leon-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=jgg-uk2M96/98Pc@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=yishaih-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox