public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Yixian Liu <liuyixian-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH for-next 1/2] RDMA/hns: Refactor eq code for hip06
Date: Tue, 14 Nov 2017 11:11:46 +0200	[thread overview]
Message-ID: <20171114091146.GT18825@mtr-leonro.local> (raw)
In-Reply-To: <1510651577-20794-2-git-send-email-liuyixian-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>

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

On Tue, Nov 14, 2017 at 05:26:16PM +0800, Yixian Liu wrote:
> Considering the compatibility of supporting hip08's eq
> process and possible changes of data structure, this patch
> refactors the eq code structure of hip06.
>
> We move all the eq process code for hip06 from hns_roce_eq.c
> into hns_roce_hw_v1.c, and also for hns_roce_eq.h. With
> these changes, it will be convenient to add the eq support
> for later hardware version.
>
> Signed-off-by: Yixian Liu <liuyixian-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
> Reviewed-by: Lijun Ou <oulijun-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
> Reviewed-by: Wei Hu (Xavier) <xavier.huwei-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
> ---
>  drivers/infiniband/hw/hns/Makefile          |   2 +-
>  drivers/infiniband/hw/hns/hns_roce_cmd.c    |   1 +
>  drivers/infiniband/hw/hns/hns_roce_cq.c     |  19 +-
>  drivers/infiniband/hw/hns/hns_roce_device.h |  57 ++-
>  drivers/infiniband/hw/hns/hns_roce_eq.c     | 759 ----------------------------
>  drivers/infiniband/hw/hns/hns_roce_eq.h     | 134 -----
>  drivers/infiniband/hw/hns/hns_roce_hw_v1.c  | 740 ++++++++++++++++++++++++++-
>  drivers/infiniband/hw/hns/hns_roce_hw_v1.h  |  44 +-
>  drivers/infiniband/hw/hns/hns_roce_main.c   |  16 +-
>  drivers/infiniband/hw/hns/hns_roce_qp.c     |   1 +
>  10 files changed, 843 insertions(+), 930 deletions(-)
>  delete mode 100644 drivers/infiniband/hw/hns/hns_roce_eq.c
>  delete mode 100644 drivers/infiniband/hw/hns/hns_roce_eq.h
>
> diff --git a/drivers/infiniband/hw/hns/Makefile b/drivers/infiniband/hw/hns/Makefile
> index ff426a6..97bf2cd 100644
> --- a/drivers/infiniband/hw/hns/Makefile
> +++ b/drivers/infiniband/hw/hns/Makefile
> @@ -5,7 +5,7 @@
>  ccflags-y :=  -Idrivers/net/ethernet/hisilicon/hns3
>
>  obj-$(CONFIG_INFINIBAND_HNS) += hns-roce.o
> -hns-roce-objs := hns_roce_main.o hns_roce_cmd.o hns_roce_eq.o hns_roce_pd.o \
> +hns-roce-objs := hns_roce_main.o hns_roce_cmd.o hns_roce_pd.o \
>  	hns_roce_ah.o hns_roce_hem.o hns_roce_mr.o hns_roce_qp.o \
>  	hns_roce_cq.o hns_roce_alloc.o
>  obj-$(CONFIG_INFINIBAND_HNS_HIP06) += hns-roce-hw-v1.o
> diff --git a/drivers/infiniband/hw/hns/hns_roce_cmd.c b/drivers/infiniband/hw/hns/hns_roce_cmd.c
> index 1085cb2..9ebe839 100644
> --- a/drivers/infiniband/hw/hns/hns_roce_cmd.c
> +++ b/drivers/infiniband/hw/hns/hns_roce_cmd.c
> @@ -103,6 +103,7 @@ void hns_roce_cmd_event(struct hns_roce_dev *hr_dev, u16 token, u8 status,
>  	context->out_param = out_param;
>  	complete(&context->done);
>  }
> +EXPORT_SYMBOL_GPL(hns_roce_cmd_event);

Are you sure that you need these symbols to be exported (used in other modules)?

Thanks

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

  parent reply	other threads:[~2017-11-14  9:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-14  9:26 [PATCH for-next 0/2] Revise eq support for hip06 & hip08 Yixian Liu
     [not found] ` <1510651577-20794-1-git-send-email-liuyixian-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2017-11-14  9:26   ` [PATCH for-next 1/2] RDMA/hns: Refactor eq code for hip06 Yixian Liu
     [not found]     ` <1510651577-20794-2-git-send-email-liuyixian-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2017-11-14  8:53       ` Liuyixian (Eason)
     [not found]         ` <ad1fff67-3511-8252-5b6f-aa1ab0c90078-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2017-11-14  9:09           ` Liuyixian (Eason)
2017-11-14  9:11       ` Leon Romanovsky [this message]
     [not found]         ` <20171114091146.GT18825-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-11-14  9:40           ` Liuyixian (Eason)
     [not found]             ` <7a93b747-4745-86ab-4366-7b883dc2f133-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2017-12-19 12:38               ` Liuyixian (Eason)
2017-11-14  9:26   ` [PATCH for-next 2/2] RDMA/hns: Add eq support of hip08 Yixian Liu
2017-12-04  9:33   ` [PATCH for-next 0/2] Revise eq support for hip06 & hip08 Liuyixian (Eason)
     [not found]     ` <4636858b-4ae8-e37e-d2d3-44441560f266-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2017-12-11  8:55       ` Liuyixian (Eason)
     [not found]         ` <6d0a2aee-54e0-90dd-5293-7f8a5dac7d36-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2017-12-11 15:49           ` Jason Gunthorpe
     [not found]             ` <20171211154902.GA27709-uk2M96/98Pc@public.gmane.org>
2017-12-12 10:42               ` Liuyixian (Eason)
2017-12-22 16:37   ` Jason Gunthorpe
     [not found]     ` <20171222163732.GA15021-uk2M96/98Pc@public.gmane.org>
2017-12-23  8:57       ` Liuyixian (Eason)

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=20171114091146.GT18825@mtr-leonro.local \
    --to=leon-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=liuyixian-hv44wF8Li93QT0dZR+AlfA@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