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
	<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Steve Wise
	<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
Subject: Re: [PATCH] verbs: Change the provider library file name suffix
Date: Thu, 10 Aug 2017 09:47:36 +0300	[thread overview]
Message-ID: <20170810064736.GQ1423@mtr-leonro.local> (raw)
In-Reply-To: <20170809215400.GA6921-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>

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

On Wed, Aug 09, 2017 at 03:54:00PM -0600, Jason Gunthorpe wrote:
> This should have been changed when the private provider API was
> introduced..
>
> The intent of the 'rdmav2' suffix was to indicate the provider is ABI
> compatible with the libibverbs loading it, with the new scheme the only
> providers which are compatible have the same ABI private version.
>
> Change the suffix to be rdmav15 to match the current private version,
> and set things up to be able to track the map file/etc.
>
> Signed-off-by: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
> ---
>  CMakeLists.txt                   |  5 +++++
>  buildlib/check-build             | 36 +++++++++++++++++++++++++++++++-----
>  buildlib/config.h.in             |  1 +
>  buildlib/rdma_functions.cmake    | 10 +++++-----
>  debian/ibverbs-providers.install |  2 +-
>  libibverbs/driver.h              |  7 -------
>  libibverbs/ibverbs.h             |  2 --
>  libibverbs/init.c                | 13 +++++--------
>  8 files changed, 48 insertions(+), 28 deletions(-)
>
> This will help Steve Wise out in his goal to make out of tree provider
> modules..
>
> diff --git a/CMakeLists.txt b/CMakeLists.txt
> index 617b3f5b01b077..2324cf49aff5a8 100644
> --- a/CMakeLists.txt
> +++ b/CMakeLists.txt
> @@ -45,6 +45,11 @@ set(PACKAGE_NAME "RDMA")
>
>  # See Documentation/versioning.md
>  set(PACKAGE_VERSION "15")
> +# When this is changed the values in these files need changing too:
> +#   debian/libibverbs1.symbols
> +#   libibverbs/libibverbs.map
> +set(IBVERBS_PABI_VERSION "15")

The overall change looks fine to me, but the lines above worry me - Addition of new "set" instruction
can be prone for errors, because it is not clear when it should be updated.

What do you think if we update it automatically?

Something like that:
➜  rdma-core git:(master) ✗ grep -e "^IBVERBS_PRIVATE_" libibverbs/libibverbs.map | cut -d'_' -f3 |  awk '{ print $1}' | sort | tail -n 1

Thanks

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

  parent reply	other threads:[~2017-08-10  6:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-09 21:54 [PATCH] verbs: Change the provider library file name suffix Jason Gunthorpe
     [not found] ` <20170809215400.GA6921-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-08-10  6:47   ` Leon Romanovsky [this message]
     [not found]     ` <20170810064736.GQ1423-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-08-10 20:36       ` Jason Gunthorpe
     [not found]         ` <20170810203615.GB24546-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-08-11 10:54           ` Leon Romanovsky

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=20170810064736.GQ1423@mtr-leonro.local \
    --to=leon-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@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