public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Chien Tin Tung <chien.tin.tung-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Bart Van Assche
	<bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>,
	Steve Wise
	<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
Subject: Re: [PATCH rdma-next V2 1/5] RDMA/netlink: Remove netlink clients infrastructure
Date: Tue, 27 Jun 2017 08:02:40 +0300	[thread overview]
Message-ID: <20170627050240.GK1248@mtr-leonro.local> (raw)
In-Reply-To: <20170626191154.GG1248-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>

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

On Mon, Jun 26, 2017 at 10:11:54PM +0300, Leon Romanovsky wrote:
> On Mon, Jun 26, 2017 at 01:33:29PM -0500, Chien Tin Tung wrote:
> > On Mon, Jun 26, 2017 at 09:13:24PM +0300, Leon Romanovsky wrote:
> > > On Mon, Jun 26, 2017 at 12:55:05PM -0500, Chien Tin Tung wrote:
> > > > On Tue, Jun 13, 2017 at 03:59:23AM -0500, Leon Romanovsky wrote:
> > > > > From: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> > > > >
> > > > > RDMA netlink has complicated infrastructure to add and remove netlink
> > > > > clients to NETLINK_RDMA family. This complicates the code and not in
> > > > > use because not many clients are available (3 clients) and most of them
> > > > > (2 clients) are statically compiled together with netlink.c.
> > > > >
> > > > > The following patch refactors RDMA netlink and opens door for the future
> > > > > patches which will be able to get rid of a lot of dead iwcm* code.
> > > > >
> > > > > Signed-off-by: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> > > > > Reviewed-by: Chien Tin Tung <chien.tin.tung-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> > > > > ---
> > > > >  drivers/infiniband/core/cma.c     |   6 +-
> > > > >  drivers/infiniband/core/device.c  |  41 +++------
> > > > >  drivers/infiniband/core/iwcm.c    |  10 +--
> > > > >  drivers/infiniband/core/netlink.c | 185 ++++++++++++++++++--------------------
> > > > >  include/rdma/rdma_netlink.h       |  17 ++--
> > > > >  5 files changed, 110 insertions(+), 149 deletions(-)
> > > >
> > > > > diff --git a/include/rdma/rdma_netlink.h b/include/rdma/rdma_netlink.h
> > > > > index 585266144329..6735dcf5d2a3 100644
> > > > > --- a/include/rdma/rdma_netlink.h
> > > > > +++ b/include/rdma/rdma_netlink.h
> > > > > @@ -10,27 +10,22 @@ struct ibnl_client_cbs {
> > > > >         struct module *module;
> > > > >  };
> > > > >
> > > > > -int ibnl_init(void);
> > > > > -void ibnl_cleanup(void);
> > > > > +int rdma_nl_init(void);
> > > > > +void rdma_nl_exit(void);
> > > >
> > > > This hunk is in direct conflict with 233c1955 which you removed
> > > > ibnl_init and ibnl_cleanup.  Are you putting back the init and
> > > > exit or do you want to leave them out?
> > >
> > > We have different git hashes and I don't know about which commit you are
> > > referring.
> >
> > There is only one true upstream, go look at Linus' git.
> >
> > >
> > > This commit simply renames exit/init functions in general header file.
> > > The init/exit is still needed, because it is called from device.c.
> > >
> > > The git log doesn't show me anything suspicious too.
> > > ➜  linux-rdma git:(topic/rdma-netlink-v1) git log -p include/rdma/rdma_netlink.h
> >
> > Your git and branch is out of sync.  This is the relevant part of the patch.
> >
> > commit 233c1955835bd8649003be9bb3d8e79788b08be1
> > Author: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> > Date:   Sun May 14 15:49:57 2017 +0300
> >
> >     RDMA/netlink: Reduce exposure of RDMA netlink functions
> >
> >     RDMA netlink is part of ib_core, hence ibnl_chk_listeners(),
> >     ibnl_init() and ibnl_cleanup() don't need to be published
> >     in public header file.
> >
> >     Let's remove EXPORT_SYMBOL from ibnl_chk_listeners() and move all these
> >     functions to private header file.
> >
> >     CC: Yuval Shaia <yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
> >     Signed-off-by: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> >     Reviewed-by: Yuval Shaia <yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
> >     Signed-off-by: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> >
> > diff --git a/include/rdma/rdma_netlink.h b/include/rdma/rdma_netlink.h
> > index 5852661..348c102 100644
> > --- a/include/rdma/rdma_netlink.h
> > +++ b/include/rdma/rdma_netlink.h
> > @@ -10,9 +10,6 @@ struct ibnl_client_cbs {
> >         struct module *module;
> >  };
> >
> > -int ibnl_init(void);
> > -void ibnl_cleanup(void);
> > -
>
> Thanks,
>
> It is rebase error, those functions needs to be in core_priv.h. I'll resend.

I found the reason, this patch set is based on -rc2, rebasing on top of -rc4 solved the issue.

To be on the safe side, I created new topic/rdma-netlink-v2 which is rebased
version of topic/rdma-netlink-v1.

Thanks for pointing it.

>
> >
> >
> > Chien



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

  parent reply	other threads:[~2017-06-27  5:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-13  8:59 [PATCH rdma-next V2 0/5] Refactor RDMA netlink infrastructure Leon Romanovsky
     [not found] ` <20170613085927.2908-1-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-06-13  8:59   ` [PATCH rdma-next V2 1/5] RDMA/netlink: Remove netlink clients infrastructure Leon Romanovsky
     [not found]     ` <20170613085927.2908-2-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-06-26 17:55       ` Chien Tin Tung
     [not found]         ` <20170626175505.GA2904-TZeIlv3TuzOfrEmaQUPKxl95YUYmaKo1UNDiOz3kqAs@public.gmane.org>
2017-06-26 18:13           ` Leon Romanovsky
     [not found]             ` <20170626181324.GE1248-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-26 18:33               ` Chien Tin Tung
     [not found]                 ` <20170626183329.GA11716-TZeIlv3TuzOfrEmaQUPKxl95YUYmaKo1UNDiOz3kqAs@public.gmane.org>
2017-06-26 19:11                   ` Leon Romanovsky
     [not found]                     ` <20170626191154.GG1248-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-27  5:02                       ` Leon Romanovsky [this message]
2017-06-13  8:59   ` [PATCH rdma-next V2 2/5] RDMA/netlink: Remove redundant owner option for netlink callbacks Leon Romanovsky
2017-06-13  8:59   ` [PATCH rdma-next V2 3/5] RDMA/netlink: Avoid double pass for RDMA netlink messages Leon Romanovsky
2017-06-13  8:59   ` [PATCH rdma-next V2 4/5] RDMA/iwcm: Remove useless check of nelink client validity Leon Romanovsky
2017-06-13  8:59   ` [PATCH rdma-next V2 5/5] RDMA/iwcm: Remove extra EXPORT_SYMBOLS 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=20170627050240.GK1248@mtr-leonro.local \
    --to=leon-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org \
    --cc=chien.tin.tung-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@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