Re: [PATCH rdma-next 3/3] RDMA/hns: Modify hns RoCE device's name

2018-11-26 Thread Wei Hu (Xavier)
On 2018/11/27 1:44, Jason Gunthorpe wrote: > On Mon, Nov 26, 2018 at 04:34:10PM +0800, Wei Hu (Xavier) wrote: >> >> On 2018/11/26 11:13, Jason Gunthorpe wrote: >>> On Sat, Nov 24, 2018 at 09:01:19PM +0800, Wei Hu (Xavier) wrote: >>>> On 2018/11/24 4:39, Jaso

Re: [PATCH rdma-next 3/3] RDMA/hns: Modify hns RoCE device's name

2018-11-26 Thread Wei Hu (Xavier)
On 2018/11/26 11:13, Jason Gunthorpe wrote: > On Sat, Nov 24, 2018 at 09:01:19PM +0800, Wei Hu (Xavier) wrote: >> >> On 2018/11/24 4:39, Jason Gunthorpe wrote: >>> On Fri, Nov 23, 2018 at 11:14:25PM +0800, Wei Hu (Xavier) wrote: >>>> This patch modifie

Re: [PATCH rdma-next 0/3] RDMA/hns: Updates for reset process of roce device in hip08

2018-11-24 Thread Wei Hu (Xavier)
On 2018/11/24 4:42, Jason Gunthorpe wrote: > On Fri, Nov 23, 2018 at 11:14:22PM +0800, Wei Hu (Xavier) wrote: >> Hi, Doug and Janson >> >> This series mainly include updates for reset process of roce device >> in hip08. >> One patch adds support for reset and

Re: [PATCH rdma-next 3/3] RDMA/hns: Modify hns RoCE device's name

2018-11-24 Thread Wei Hu (Xavier)
On 2018/11/24 4:39, Jason Gunthorpe wrote: > On Fri, Nov 23, 2018 at 11:14:25PM +0800, Wei Hu (Xavier) wrote: >> This patch modifies the name of hns RoCE device's name in order >> to ensure that the name is consistent before and after reset. >> >> Signed-off-by: W

[PATCH rdma-next 0/3] RDMA/hns: Updates for reset process of roce device in hip08

2018-11-23 Thread Wei Hu (Xavier)
avem/net-next.git commit cb7ea80c6dfda472a068d40f4f9755d034b2dfde Best Regards Xavier Wei Hu (Xavier) (3): RDMA/hns: Add support for reset and loading or unloading driver occur simultaneously RDMA/hns: Stop sending mailbox when reset occured or is occuring RDMA/hns: Modify hns

[PATCH rdma-next 2/3] RDMA/hns: Stop sending mailbox when reset occured or is occuring

2018-11-23 Thread Wei Hu (Xavier)
This patch stops sending mailbox to the hardware When reset occured or is occuring to ensure that hardware can work normally. Signed-off-by: Wei Hu (Xavier) --- drivers/infiniband/hw/hns/hns_roce_cmd.c| 32 -- drivers/infiniband/hw/hns/hns_roce_device.h | 8 ++ drivers/infiniband/hw

[PATCH rdma-next 3/3] RDMA/hns: Modify hns RoCE device's name

2018-11-23 Thread Wei Hu (Xavier)
This patch modifies the name of hns RoCE device's name in order to ensure that the name is consistent before and after reset. Signed-off-by: Wei Hu (Xavier) --- drivers/infiniband/hw/hns/hns_roce_device.h | 1 + drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 3 +++ drivers/infiniband/hw/hns

[PATCH rdma-next 1/3] RDMA/hns: Add support for reset and loading or unloading driver occur simultaneously

2018-11-23 Thread Wei Hu (Xavier)
This patch adds support for reset and loading or unloading driver occur simultaneously. Signed-off-by: Wei Hu (Xavier) --- drivers/infiniband/hw/hns/hns_roce_device.h | 21 drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 151 ++-- drivers/infiniband/hw/hns

Re: [PATCH V3 rdma-next 4/4] RDMA/hns: Implement the disassociate_ucontext API

2018-05-29 Thread Wei Hu (Xavier)
On 2018/5/29 0:53, Jason Gunthorpe wrote: > On Sat, May 26, 2018 at 04:41:47PM +0800, Wei Hu (Xavier) wrote: >> This patch implemented the IB core disassociate_ucontext API. >> >> Signed-off-by: Wei Hu (Xavier) >> >> v2->v3: Addressed the comments from Ja

Re: [PATCH V3 rdma-next 3/4] RDMA/uverbs: Hoist the common process of disassociate_ucontext into ib core

2018-05-28 Thread Wei Hu (Xavier)
On 2018/5/27 23:05, Leon Romanovsky wrote: > On Sat, May 26, 2018 at 04:41:46PM +0800, Wei Hu (Xavier) wrote: >> This patch hoisted the common process of disassociate_ucontext >> callback function into ib core code, and these code are common >> to ervery ib_device dri

[PATCH V3 rdma-next 2/4] RDMA/hns: Fix the illegal memory operation when cross page

2018-05-26 Thread Wei Hu (Xavier)
) [ 3303.377377] ---[ end trace fd5ab98b3325cf9a ]--- Reported-by: Jie Chen <chenjie...@huawei.com> Reported-by: Xiping Zhang (Francis) <zhangxipi...@huawei.com> Fixes: b1c158350968("RDMA/hns: Get rid of virt_to_page and vmap calls after dma_alloc_coherent") Signed-off-by: Wei

[PATCH V3 rdma-next 1/4] RDMA/hns: Add reset process for RoCE in hip08

2018-05-26 Thread Wei Hu (Xavier)
This patch added reset process for RoCE in hip08. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> -- v2->v3: no change. v1->v2: 1.Delete handle->priv = NULL in hns_roce_hw_v2_uninit_instance. 2.Add hns_roce_hw_v2_reset_notify_init callback function, W

[PATCH V3 rdma-next 0/4] {RDMA/uverbs,hns}: Misc update for hns driver

2018-05-26 Thread Wei Hu (Xavier)
. Regards Wei Hu Wei Hu (Xavier) (4): RDMA/hns: Add reset process for RoCE in hip08 RDMA/hns: Fix the illegal memory operation when cross page RDMA/uverbs: Hoist the common process of disassociate_ucontext into ib core RDMA/hns: Implement the disassociate_ucontext API drivers

[PATCH V3 rdma-next 4/4] RDMA/hns: Implement the disassociate_ucontext API

2018-05-26 Thread Wei Hu (Xavier)
This patch implemented the IB core disassociate_ucontext API. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> --- v2->v3: Addressed the comments from Jason. The related link: https://lkml.org/lkml/2018/5/22/967 v1->v2: no change. --- drivers/infiniband/hw/hns/hns_r

[PATCH V3 rdma-next 3/4] RDMA/uverbs: Hoist the common process of disassociate_ucontext into ib core

2018-05-26 Thread Wei Hu (Xavier)
This patch hoisted the common process of disassociate_ucontext callback function into ib core code, and these code are common to ervery ib_device driver. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> --- drivers/infiniband/core/uverbs_main.

Re: [PATCH V2 rdma-next 0/4] Misc update for hns driver

2018-05-26 Thread Wei Hu (Xavier)
On 2018/5/25 5:43, Jason Gunthorpe wrote: > On Wed, May 23, 2018 at 06:16:26PM +0800, Wei Hu (Xavier) wrote: >> This patchset included fixing bug, some optimization, reset >> process for hns driver. >> >> v1->v2: 1.pull the patch out of the series. The name of th

Re: [PATCH V2 rdma-next 3/4] RDMA/hns: Add reset process for RoCE in hip08

2018-05-25 Thread Wei Hu (Xavier)
On 2018/5/25 22:55, Jason Gunthorpe wrote: > On Fri, May 25, 2018 at 01:54:31PM +0800, Wei Hu (Xavier) wrote: >> >> On 2018/5/25 5:31, Jason Gunthorpe wrote: >>>> static const struct hnae3_client_ops hns_roce_hw_v2_ops = { >>>>.init_

Re: [PATCH V2 rdma-next 4/4] RDMA/hns: Fix the illegal memory operation when cross page

2018-05-24 Thread Wei Hu (Xavier)
On 2018/5/25 5:40, Jason Gunthorpe wrote: > On Wed, May 23, 2018 at 06:16:30PM +0800, Wei Hu (Xavier) wrote: >> This patch fixed the potential illegal operation when using the >> extend sge buffer cross page in post send operation. The bug >> will cause the calltrace. >

Re: [PATCH V2 rdma-next 3/4] RDMA/hns: Add reset process for RoCE in hip08

2018-05-24 Thread Wei Hu (Xavier)
On 2018/5/25 5:31, Jason Gunthorpe wrote: > On Wed, May 23, 2018 at 06:16:29PM +0800, Wei Hu (Xavier) wrote: >> This patch added reset process for RoCE in hip08. >> >> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> >> >&g

[PATCH V2 rdma-next 4/4] RDMA/hns: Fix the illegal memory operation when cross page

2018-05-23 Thread Wei Hu (Xavier)
RDMA/hns: Get rid of virt_to_page and vmap calls after dma_alloc_coherent") Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> --- v1->v2: Modify the Fixes statement according to Leon's comment. --- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 70 +-

[PATCH V2 rdma-next 0/4] Misc update for hns driver

2018-05-23 Thread Wei Hu (Xavier)
3.Address the Jason's comment in reset relevant patch. Wei Hu (Xavier) (4): RDMA/hns: Modify uar allocation algorithm to avoid bitmap exhaust RDMA/hns: Increase checking CMQ status timeout value RDMA/hns: Add reset process for RoCE in hip08 RDMA/hns: Fix the illegal memory operation when cross p

[PATCH V2 rdma-next 2/4] RDMA/hns: Increase checking CMQ status timeout value

2018-05-23 Thread Wei Hu (Xavier)
This patch increases checking CMQ status timeout value and uses the same value with NIC driver to avoid deficiency of time. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Reviewed-by: Leon Romanovsky <leo...@mellanox.com> --- drivers/infiniband/hw/hns/hns_roce_hw_v2.h |

[PATCH V2 rdma-next 3/4] RDMA/hns: Add reset process for RoCE in hip08

2018-05-23 Thread Wei Hu (Xavier)
This patch added reset process for RoCE in hip08. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> --- v1->v2: 1.Delete handle->priv = NULL in hns_roce_hw_v2_uninit_instance. 2.Add hns_roce_hw_v2_reset_notify_init callback function, When RoCE r

[PATCH V2 rdma-next 1/4] RDMA/hns: Modify uar allocation algorithm to avoid bitmap exhaust

2018-05-23 Thread Wei Hu (Xavier)
This patch modified uar allocation algorithm in hns_roce_uar_alloc function to avoid bitmap exhaust. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Reviewed-by: Leon Romanovsky <leo...@mellanox.com> --- drivers/infiniband/hw/hns/hns_roce_device.h | 1 + drivers/infin

Re: [PATCH rdma-next 1/5] RDMA/hns: Implement the disassociate_ucontext API

2018-05-23 Thread Wei Hu (Xavier)
On 2018/5/23 4:21, Jason Gunthorpe wrote: > On Sat, May 19, 2018 at 04:24:40PM +0800, Wei Hu (Xavier) wrote: >> >> On 2018/5/17 23:00, Jason Gunthorpe wrote: >>> On Thu, May 17, 2018 at 04:02:49PM +0800, Wei Hu (Xavier) wrote: >>>> This patch Implements t

Re: [PATCH rdma-next 4/5] RDMA/hns: Add reset process for RoCE in hip08

2018-05-23 Thread Wei Hu (Xavier)
On 2018/5/23 11:47, Jason Gunthorpe wrote: > On Wed, May 23, 2018 at 10:54:54AM +0800, Wei Hu (Xavier) wrote: >> >> On 2018/5/23 4:26, Jason Gunthorpe wrote: >>> On Fri, May 18, 2018 at 03:23:00PM +0800, Wei Hu (Xavier) wrote: >>>> On 2018/5/18 12:15, Jason G

Re: [PATCH rdma-next 2/5] RDMA/hns: Modify uar allocation algorithm to avoid bitmap exhaust

2018-05-23 Thread Wei Hu (Xavier)
On 2018/5/23 15:00, Leon Romanovsky wrote: > On Wed, May 23, 2018 at 02:49:35PM +0800, Wei Hu (Xavier) wrote: >> >> On 2018/5/23 14:05, Leon Romanovsky wrote: >>> On Thu, May 17, 2018 at 04:02:50PM +0800, Wei Hu (Xavier) wrote: >>>> This pat

Re: [PATCH rdma-next 2/5] RDMA/hns: Modify uar allocation algorithm to avoid bitmap exhaust

2018-05-23 Thread Wei Hu (Xavier)
On 2018/5/23 14:05, Leon Romanovsky wrote: > On Thu, May 17, 2018 at 04:02:50PM +0800, Wei Hu (Xavier) wrote: >> This patch modified uar allocation algorithm in hns_roce_uar_alloc >> function to avoid bitmap exhaust. >> >> Signed-off-by: Wei Hu (Xavie

Re: [PATCH rdma-next 5/5] RDMA/hns: Fix the illegal memory operation when cross page

2018-05-23 Thread Wei Hu (Xavier)
On 2018/5/23 14:17, Leon Romanovsky wrote: > On Thu, May 17, 2018 at 04:02:53PM +0800, Wei Hu (Xavier) wrote: >> This patch fixed the potential illegal operation when using the >> extend sge buffer cross page in post send operation. The bug >> will cause the calltrace. &

Re: [PATCH rdma-next 3/5] RDMA/hns: Increase checking CMQ status timeout value

2018-05-23 Thread Wei Hu (Xavier)
On 2018/5/23 14:09, Wei Hu (Xavier) wrote: > > On 2018/5/23 13:49, Leon Romanovsky wrote: >> On Thu, May 17, 2018 at 04:02:51PM +0800, Wei Hu (Xavier) wrote: >>> This patch increases checking CMQ status timeout value and >>> uses the same value with NIC driver t

Re: [PATCH rdma-next 3/5] RDMA/hns: Increase checking CMQ status timeout value

2018-05-23 Thread Wei Hu (Xavier)
On 2018/5/23 13:49, Leon Romanovsky wrote: > On Thu, May 17, 2018 at 04:02:51PM +0800, Wei Hu (Xavier) wrote: >> This patch increases checking CMQ status timeout value and >> uses the same value with NIC driver to avoid deficiency of >> time. >> >> Signed-o

Re: [PATCH rdma-next 4/5] RDMA/hns: Add reset process for RoCE in hip08

2018-05-22 Thread Wei Hu (Xavier)
On 2018/5/23 10:54, Wei Hu (Xavier) wrote: > > On 2018/5/23 4:26, Jason Gunthorpe wrote: >> On Fri, May 18, 2018 at 03:23:00PM +0800, Wei Hu (Xavier) wrote: >>> On 2018/5/18 12:15, Jason Gunthorpe wrote: >>>> On Fri, May 18, 2018 at 11:28:11AM +0800, Wei Hu (Xav

Re: [PATCH rdma-next 4/5] RDMA/hns: Add reset process for RoCE in hip08

2018-05-22 Thread Wei Hu (Xavier)
On 2018/5/23 4:26, Jason Gunthorpe wrote: > On Fri, May 18, 2018 at 03:23:00PM +0800, Wei Hu (Xavier) wrote: >> >> On 2018/5/18 12:15, Jason Gunthorpe wrote: >>> On Fri, May 18, 2018 at 11:28:11AM +0800, Wei Hu (Xavier) wrote: >>>> On 2018/5/17 23:14, Jason G

Re: [PATCH rdma-next 1/5] RDMA/hns: Implement the disassociate_ucontext API

2018-05-19 Thread Wei Hu (Xavier)
On 2018/5/17 23:00, Jason Gunthorpe wrote: > On Thu, May 17, 2018 at 04:02:49PM +0800, Wei Hu (Xavier) wrote: >> This patch Implements the IB core disassociate_ucontext API. >> >> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> >> drivers/infin

Re: [PATCH rdma-next 4/5] RDMA/hns: Add reset process for RoCE in hip08

2018-05-18 Thread Wei Hu (Xavier)
On 2018/5/18 12:15, Jason Gunthorpe wrote: > On Fri, May 18, 2018 at 11:28:11AM +0800, Wei Hu (Xavier) wrote: >> >> On 2018/5/17 23:14, Jason Gunthorpe wrote: >>> On Thu, May 17, 2018 at 04:02:52PM +0800, Wei Hu (Xavier) wrote: >>>> diff --git a/drivers/infini

Re: [PATCH rdma-next 4/5] RDMA/hns: Add reset process for RoCE in hip08

2018-05-17 Thread Wei Hu (Xavier)
On 2018/5/17 23:14, Jason Gunthorpe wrote: > On Thu, May 17, 2018 at 04:02:52PM +0800, Wei Hu (Xavier) wrote: >> diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c >> b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c >> index 86ef15f..e1c44a6 100644 >> +++

[PATCH rdma-next 4/5] RDMA/hns: Add reset process for RoCE in hip08

2018-05-17 Thread Wei Hu (Xavier)
This patch added reset process for RoCE in hip08. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_cmd.c| 3 ++ drivers/infiniband/hw/hns/hns_roce_device.h | 2 + drivers/infiniband/hw/hns/hns_roce_hw_v2.c

[PATCH rdma-next 0/5] Misc update for hns driver

2018-05-17 Thread Wei Hu (Xavier)
This patchset included fixing bug, some optimization, reset process and implementation of the disassociate_ucontext API for hns driver. Wei Hu (Xavier) (5): RDMA/hns: Implement the disassociate_ucontext API RDMA/hns: Modify uar allocation algorithm to avoid bitmap exhaust RDMA/hns: Increase

[PATCH rdma-next 5/5] RDMA/hns: Fix the illegal memory operation when cross page

2018-05-17 Thread Wei Hu (Xavier)
RDMA/hns: Get rid of virt_to_page and vmap calls after dma_alloc_coherent") Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 70 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 1 + 2 files changed, 51

[PATCH rdma-next 3/5] RDMA/hns: Increase checking CMQ status timeout value

2018-05-17 Thread Wei Hu (Xavier)
This patch increases checking CMQ status timeout value and uses the same value with NIC driver to avoid deficiency of time. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH rdma-next 2/5] RDMA/hns: Modify uar allocation algorithm to avoid bitmap exhaust

2018-05-17 Thread Wei Hu (Xavier)
This patch modified uar allocation algorithm in hns_roce_uar_alloc function to avoid bitmap exhaust. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_device.h | 1 + drivers/infiniband/hw/hns/hns_roce_pd.c | 10 ++ 2 files chan

[PATCH rdma-next 1/5] RDMA/hns: Implement the disassociate_ucontext API

2018-05-17 Thread Wei Hu (Xavier)
This patch Implements the IB core disassociate_ucontext API. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_main.c | 36 +++ 1 file changed, 36 insertions(+) diff --git a/drivers/infiniband/hw/hns/hns_roce_mai

[PATCH V2 rdma-rc 0/3] RDMA/hns: Bug fixes in hns RoCE driver

2017-11-27 Thread Wei Hu (Xavier)
This patch-set introduces three patches to fix the memory related issues. one fixes DMA operation failure when smmu is enabled. the other two patches fixes incorrect usage of dma API that may cause coherency problems. Wei Hu (Xavier) (3): RDMA/hns: Fix the issue of IOVA not page continuous

[PATCH V2 rdma-rc 1/3] RDMA/hns: Fix the issue of IOVA not page continuous in hip08

2017-11-27 Thread Wei Hu (Xavier)
, the IOVA should be calculated based on the sg length. Fixes: 3958cc5("RDMA/hns: Configure the MTPT in hip08") Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaobo Xu <xushao...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signe

[PATCH V2 rdma-rc 3/3] RDMA/hns: Get rid of page operation after dma_alloc_coherent

2017-11-27 Thread Wei Hu (Xavier)
in the struct of hem in hns RoCE driver. Fixes: 9a44353("IB/hns: Add driver files for hns RoCE driver") Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaobo Xu <xushao...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Yixi

[PATCH V2 rdma-rc 2/3] RDMA/hns: Get rid of virt_to_page and vmap calls after dma_alloc_coherent

2017-11-27 Thread Wei Hu (Xavier)
ot;IB/hns: Add driver files for hns RoCE driver") Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaobo Xu <xushao...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Yixian Liu <liuyix...@huawei.com> Signed-off-by:

Re: [PATCH 0/3] RDMA/hns: Bug fixes in hns RoCE driver

2017-11-27 Thread Wei Hu (Xavier)
On 2017/11/28 2:36, Jason Gunthorpe wrote: > On Mon, Nov 27, 2017 at 10:41:21AM +0800, Wei Hu (Xavier) wrote: >> This patch-set introduces three patches to fix about the memory >> related issues. > If these patches are for-rc can you revise the commit message to more >

[PATCH 1/3] RDMA/hns: Fix the issue of IOVA not page continuous in hip08

2017-11-26 Thread Wei Hu (Xavier)
If the smmu is enabled, the length of sg obtained from __iommu_map_sg_attrs is not 4kB. When the IOVA is set with the sg dma address, the IOVA will not be page continuous. In order to fix this issue, the IOVA should be calculated based on the sg length. Signed-off-by: Wei Hu (Xavier) <xavier

[PATCH 3/3] RDMA/hns: Get rid of page operation after dma_alloc_coherent

2017-11-26 Thread Wei Hu (Xavier)
in the struct of hem. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaobo Xu <xushao...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Yixian Liu <liuyix...@huawei.com> Signed-off-by: Xiping Zhang (Francis) <zhangxipi.

[PATCH 0/3] RDMA/hns: Bug fixes in hns RoCE driver

2017-11-26 Thread Wei Hu (Xavier)
This patch-set introduces three patches to fix about the memory related issues. Wei Hu (Xavier) (3): RDMA/hns: Fix the issue of IOVA not page continuous in hip08 RDMA/hns: Get rid of virt_to_page and vmap calls after dma_alloc_coherent RDMA/hns: Get rid of page operation after

[PATCH 2/3] RDMA/hns: Get rid of virt_to_page and vmap calls after dma_alloc_coherent

2017-11-26 Thread Wei Hu (Xavier)
. In current code, there are incorrect usage as below: dma_alloc_coherent + virt_to_page + vmap. This patch fixes it to get rid of virt_to_page and vmap calls. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaobo Xu <xushao...@huawei.com> Signed-off-by: Li

Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable support in hip08

2017-11-08 Thread Wei Hu (Xavier)
On 2017/11/1 20:26, Robin Murphy wrote: > On 01/11/17 07:46, Wei Hu (Xavier) wrote: >> >> On 2017/10/12 20:59, Robin Murphy wrote: >>> On 12/10/17 13:31, Wei Hu (Xavier) wrote: >>>> On 2017/10/1 0:10, Leon Romanovsky wrote: >>>>> On Sat, Sep

Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable support in hip08

2017-11-08 Thread Wei Hu (Xavier)
On 2017/11/7 23:48, Jason Gunthorpe wrote: > On Tue, Nov 07, 2017 at 10:45:29AM +0800, Wei Hu (Xavier) wrote: > >> We reconstruct the code as below: >> It replaces dma_alloc_coherent with __get_free_pages and >> dma_map_single functions. So, we can vma

Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable support in hip08

2017-11-08 Thread Wei Hu (Xavier)
On 2017/11/7 23:58, Christoph Hellwig wrote: > On Tue, Nov 07, 2017 at 08:48:38AM -0700, Jason Gunthorpe wrote: >> Can't you just use vmalloc and dma_map that? Other drivers follow that >> approach.. > You can't easily due to the flushing requirements. We used to do that > in XFS and it led to

Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable support in hip08

2017-11-08 Thread Wei Hu (Xavier)
On 2017/11/7 14:32, Leon Romanovsky wrote: > On Tue, Nov 07, 2017 at 10:45:29AM +0800, Wei Hu (Xavier) wrote: >> >> On 2017/11/1 20:26, Robin Murphy wrote: >>> On 01/11/17 07:46, Wei Hu (Xavier) wrote: >>>> On 2017/10/12 20:59, Robin Murphy wrote: >>&g

Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable support in hip08

2017-11-06 Thread Wei Hu (Xavier)
On 2017/11/1 20:26, Robin Murphy wrote: > On 01/11/17 07:46, Wei Hu (Xavier) wrote: >> >> On 2017/10/12 20:59, Robin Murphy wrote: >>> On 12/10/17 13:31, Wei Hu (Xavier) wrote: >>>> On 2017/10/1 0:10, Leon Romanovsky wrote: >>>>> On Sat, Sep

Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable support in hip08

2017-11-01 Thread Wei Hu (Xavier)
On 2017/10/12 20:59, Robin Murphy wrote: > On 12/10/17 13:31, Wei Hu (Xavier) wrote: >> >> On 2017/10/1 0:10, Leon Romanovsky wrote: >>> On Sat, Sep 30, 2017 at 05:28:59PM +0800, Wei Hu (Xavier) wrote: >>>> If the IOMMU is enabled, the length of sg obt

[PATCH 3/3] RDMA/hns: Configure sgid type for hip08 RoCE

2017-10-26 Thread Wei Hu (Xavier)
The hardware vendors need to generate RoCEv1 or RoCEv2 packet according to the sgid type configured. Besides, update the gid table size for hip08 RoCE device. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaob

[PATCH 1/3] RDMA/hns: Add rereg mr support for hip08

2017-10-26 Thread Wei Hu (Xavier)
This patch adds rereg mr support for hip08. Signed-off-by: Shaobo Xu <xushao...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Yixian Liu <liuyix...@huawei.com> --- drivers/infiniband/hw/hns

[PATCH 0/3] RDMA/hns: Add rereg mr & RoCEv2 support for hip08

2017-10-26 Thread Wei Hu (Xavier)
This patch-set introduce rereg mr support, RoCEv2 support for hip08. Wei Hu (Xavier) (3): RDMA/hns: Add rereg mr support for hip08 RDMA/hns: Generate gid type of RoCEv2 RDMA/hns: Configure sgid type for hip08 RoCE drivers/infiniband/hw/hns/hns_roce_cmd.h| 3 + drivers/infiniband/hw

[PATCH 2/3] RDMA/hns: Generate gid type of RoCEv2

2017-10-26 Thread Wei Hu (Xavier)
uli...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaobo Xu <xushao...@huawei.com> Signed-off-by: Yixian Liu <liuyix...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_device.h | 1 + drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 3 ++- d

Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable support in hip08

2017-10-18 Thread Wei Hu (Xavier)
On 2017/10/18 16:42, Wei Hu (Xavier) wrote: On 2017/10/1 0:10, Leon Romanovsky wrote: On Sat, Sep 30, 2017 at 05:28:59PM +0800, Wei Hu (Xavier) wrote: If the IOMMU is enabled, the length of sg obtained from __iommu_map_sg_attrs is not 4kB. When the IOVA is set with the sg dma address

[PATCH V2 2/3] RDMA/hns: Update the IRRL table chunk size in hip08

2017-10-18 Thread Wei Hu (Xavier)
As the increase of the IRRL specification in hip08, the IRRL table chunk size needs to be updated. This patch updates the IRRL table chunk size to 256k for hip08. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaobo Xu <xushao...@huawei.com> Signed-off-by: Li

[PATCH V2 1/3] RDMA/hns: Support WQE/CQE/PBL page size configurable feature in hip08

2017-10-18 Thread Wei Hu (Xavier)
This patch updates to support WQE, CQE and PBL page size configurable feature, which includes base address page size and buffer page size. Signed-off-by: Shaobo Xu <xushao...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <oul

[PATCH V2 0/3] RDMA/hns: Add Features & Code improvements for hip08

2017-10-18 Thread Wei Hu (Xavier)
This patch-set introduce PBL page size configuration support, updating PD specification and IRRL table chunk size for hip08. Wei Hu (Xavier) (3): RDMA/hns: Support WQE/CQE/PBL page size configurable feature in hip08 RDMA/hns: Update the IRRL table chunk size in hip08 RDMA/hns: Update the PD

[PATCH V2 3/3] RDMA/hns: Update the PD specification in hip08

2017-10-18 Thread Wei Hu (Xavier)
hao...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h b/dri

Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable support in hip08

2017-10-18 Thread Wei Hu (Xavier)
On 2017/10/1 0:10, Leon Romanovsky wrote: On Sat, Sep 30, 2017 at 05:28:59PM +0800, Wei Hu (Xavier) wrote: If the IOMMU is enabled, the length of sg obtained from __iommu_map_sg_attrs is not 4kB. When the IOVA is set with the sg dma address, the IOVA will not be page continuous. and the VA

Re: [PATCH for-next 3/4] RDMA/hns: Update the IRRL table chunk size in hip08

2017-10-17 Thread Wei Hu (Xavier)
On 2017/10/1 13:40, Leon Romanovsky wrote: On Sat, Sep 30, 2017 at 05:29:00PM +0800, Wei Hu (Xavier) wrote: As the increase of the IRRL specification in hip08, the IRRL table chunk size needs to be updated. This patch updates the IRRL table chunk size to 256k for hip08. Signed-off-by: Wei Hu

Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable support in hip08

2017-10-12 Thread Wei Hu (Xavier)
On 2017/10/1 0:10, Leon Romanovsky wrote: On Sat, Sep 30, 2017 at 05:28:59PM +0800, Wei Hu (Xavier) wrote: If the IOMMU is enabled, the length of sg obtained from __iommu_map_sg_attrs is not 4kB. When the IOVA is set with the sg dma address, the IOVA will not be page continuous. and the VA

[PATCH for-next 4/4] RDMA/hns: Update the PD specification in hip08

2017-09-30 Thread Wei Hu (Xavier)
hao...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h b/dri

[PATCH for-next 0/4] Add Features & Code improvements for hip08

2017-09-30 Thread Wei Hu (Xavier)
This patch-set introduce PBL page size configuration support,IOMMU support, updating PD specification and IRRL table chunk size for hip08. Shaobo Xu (1): RDMA/hns: Support WQE/CQE/PBL page size configurable feature in hip08 Wei Hu (Xavier) (3): RDMA/hns: Add IOMMU enable support in hip08

[PATCH for-next 1/4] RDMA/hns: Support WQE/CQE/PBL page size configurable feature in hip08

2017-09-30 Thread Wei Hu (Xavier)
From: Shaobo Xu <xushao...@huawei.com> This patch updates to support WQE, CQE and PBL page size configurable feature, which includes base address page size and buffer page size. Signed-off-by: Shaobo Xu <xushao...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.

[PATCH for-next 2/4] RDMA/hns: Add IOMMU enable support in hip08

2017-09-30 Thread Wei Hu (Xavier)
is a discontinuous VA. Under these circumstances, the IOVA should be calculated based on the sg length, and record the VA returned from dma_alloc_coherent in the struct of hem. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaobo Xu <xushao...@huawei.com> Signed-off-by: Li

[PATCH for-next 3/4] RDMA/hns: Update the IRRL table chunk size in hip08

2017-09-30 Thread Wei Hu (Xavier)
As the increase of the IRRL specification in hip08, the IRRL table chunk size needs to be updated. This patch updates the IRRL table chunk size to 256k for hip08. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaobo Xu <xushao...@huawei.com> Signed-off-by: Li

Re: [PATCH] RDMA/hns: return 0 rather than return a garbage status value

2017-09-30 Thread Wei Hu (Xavier)
Thanks, Colin Ian King Acked-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> On 2017/9/30 4:13, Colin King wrote: From: Colin Ian King <colin.k...@canonical.com> For the case where hr_qp->state == IB_QPS_RESET, an uninitialized value in ret is being returned by function hns_r

[PATCH V2 for-next 8/8] RDMA/hns: Replace usleep_range with udelay when checking command status

2017-09-29 Thread Wei Hu (Xavier)
s-roce-hw-v2] Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaobo Xu <xushao...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[PATCH V2 for-next 1/8] RDMA/hns: Modify the value with rd_rd of qp_attr

2017-09-29 Thread Wei Hu (Xavier)
From: Lijun Ou <ouli...@huawei.com> The value of max_rd_atomic and max_dest_rd_atomic in query_qp are incorrect. It should be assigned by left shifting of the bit in hip06 SoC. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.co

[PATCH V2 for-next 5/8] RDMA/hns: Set rdma_ah_attr type for querying qp

2017-09-29 Thread Wei Hu (Xavier)
From: Lijun Ou <ouli...@huawei.com> When querying qp, It needs to return RoCE device ah_attr type that may be specific to RoCE devices. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaobo Xu <

[PATCH V2 for-next 7/8] RDMA/hns: Remove unnecessarily calling unregister_inetaddr_notifier function

2017-09-29 Thread Wei Hu (Xavier)
From: Lijun Ou <ouli...@huawei.com> When the driver doesn't call register_inetaddr_notifier function, it need not call unregister_inetaddr_notifier to unregister inet addr. This patch fixes it. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.h

[PATCH V2 for-next 6/8] RDMA/hns: Add return statement when checking error in hns_roce_v1_mr_free_work_fn

2017-09-29 Thread Wei Hu (Xavier)
infiniband/hw/hns/hns_roce_hw_v1.c:1009 hns_roce_v1_mr_free_work_fn() error: we previously assumed 'hr_qp' could be null Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Shaobo Xu <xushao...@huawei.com>

[PATCH V2 for-next 4/8] RDMA/hns: Set mask for destination qp field of qp context assignment

2017-09-29 Thread Wei Hu (Xavier)
From: Lijun Ou <ouli...@huawei.com> When only set IB_QP_DEST_QPN flag for attr_mask, the operation of assigning the dest_qp_num for dest_qp field of qp context is valid. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed

[PATCH V2 for-next 3/8] RDMA/hns: Add return statement when kzalloc return NULL in hns_roce_v1_recreate_lp_qp

2017-09-29 Thread Wei Hu (Xavier)
/hns_roce_hw_v1.c:918 hns_roce_v1_recreate_lp_qp() error: potential null dereference 'lp_qp_work'. (kzalloc returns null) Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Shaobo Xu <xushao...@huawei.com> --- Patch V2: Addres

[PATCH V2 for-next 2/8] RDMA/hns: Factor out the code for checking sdb status into a new function

2017-09-29 Thread Wei Hu (Xavier)
niband/hw/hns/hns_roce_hw_v1.c:3562 check_qp_db_process_status() warn: inconsistent indenting. Fixes: 5f110ac4bed8 ("IB/hns: Fix for checkpatch.pl comment style) Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-of

[PATCH V2 for-next 0/8] Bug fixes & Code improvements in hip06 and hip08 RoCE driver

2017-09-29 Thread Wei Hu (Xavier)
s: Set mask for destination qp field of qp context assignment RDMA/hns: Set rdma_ah_attr type for querying qp RDMA/hns: Remove unnecessarily calling unregister_inetaddr_notifier function RDMA/hns: Replace usleep_range with udelay when checking command status Wei Hu (Xavier) (2): RD

Re: [PATCH for-next 3/9] RDMA/hns: Add return statement when kzalloc return NULL in hns_roce_v1_recreate_lp_qp

2017-09-29 Thread Wei Hu (Xavier)
On 2017/9/29 18:23, Leon Romanovsky wrote: On Fri, Sep 29, 2017 at 02:07:22PM +0800, Wei Hu (Xavier) wrote: On 2017/9/28 20:59, Leon Romanovsky wrote: On Thu, Sep 28, 2017 at 07:56:59PM +0800, Wei Hu (Xavier) wrote: On 2017/9/28 17:13, Leon Romanovsky wrote: On Thu, Sep 28, 2017 at 12:57

Re: [PATCH for-next 3/9] RDMA/hns: Add return statement when kzalloc return NULL in hns_roce_v1_recreate_lp_qp

2017-09-29 Thread Wei Hu (Xavier)
On 2017/9/28 20:59, Leon Romanovsky wrote: On Thu, Sep 28, 2017 at 07:56:59PM +0800, Wei Hu (Xavier) wrote: On 2017/9/28 17:13, Leon Romanovsky wrote: On Thu, Sep 28, 2017 at 12:57:28PM +0800, Wei Hu (Xavier) wrote: From: Lijun Ou <ouli...@huawei.com> When lp_qp_work is NULL, it

Re: [PATCH for-next 2/9] RDMA/hns: Factor out the code for checking sdb status into a new function

2017-09-28 Thread Wei Hu (Xavier)
On 2017/9/28 21:50, Leon Romanovsky wrote: On Thu, Sep 28, 2017 at 12:57:27PM +0800, Wei Hu (Xavier) wrote: From: Lijun Ou <ouli...@huawei.com> It mainly places the lines for checking send doorbell status into a special functions. As a result, we can directl

Re: [PATCH for-next 8/9] RDMA/hns: Remove unused struct members in hns-abi.h

2017-09-28 Thread Wei Hu (Xavier)
On 2017/9/28 21:04, Leon Romanovsky wrote: On Thu, Sep 28, 2017 at 07:56:40PM +0800, Wei Hu (Xavier) wrote: On 2017/9/28 17:02, Leon Romanovsky wrote: On Thu, Sep 28, 2017 at 12:57:33PM +0800, Wei Hu (Xavier) wrote: From: Lijun Ou <ouli...@huawei.com> This patch mainly deletes some

Re: [PATCH for-next 3/9] RDMA/hns: Add return statement when kzalloc return NULL in hns_roce_v1_recreate_lp_qp

2017-09-28 Thread Wei Hu (Xavier)
On 2017/9/28 17:13, Leon Romanovsky wrote: On Thu, Sep 28, 2017 at 12:57:28PM +0800, Wei Hu (Xavier) wrote: From: Lijun Ou <ouli...@huawei.com> When lp_qp_work is NULL, it should be returned ENOMEM. This patch mainly fixes it. Ihis patch fixes the smatch error as below: drivers/infi

Re: [PATCH for-next 8/9] RDMA/hns: Remove unused struct members in hns-abi.h

2017-09-28 Thread Wei Hu (Xavier)
On 2017/9/28 17:02, Leon Romanovsky wrote: On Thu, Sep 28, 2017 at 12:57:33PM +0800, Wei Hu (Xavier) wrote: From: Lijun Ou <ouli...@huawei.com> This patch mainly deletes some unused struct members for hns_roce_ib_create_qp in order to match libhns, because the num of struct m

Re: [PATCH for-next 05/20] RDMA/hns: Add command queue support for hip08 RoCE driver

2017-09-27 Thread Wei Hu (Xavier)
On 2017/9/27 20:41, Doug Ledford wrote: On Wed, 2017-09-27 at 08:21 -0400, Doug Ledford wrote: And if you argee, after this patchset has been accepted we will send a following up patch : In hns_roce_cmq_send function, replace usleep_range(1000, 2000); with the following

[PATCH for-next 8/9] RDMA/hns: Remove unused struct members in hns-abi.h

2017-09-27 Thread Wei Hu (Xavier)
uawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaobo Xu <xushao...@huawei.com> --- include/uapi/rdma/hns-abi.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/uapi/rdma/hns-abi.h b/include/uapi/rdma/hns-abi.h index 5d74019..79251b6 1

[PATCH for-next 6/9] RDMA/hns: Add return statement when checking error in hns_roce_v1_mr_free_work_fn

2017-09-27 Thread Wei Hu (Xavier)
infiniband/hw/hns/hns_roce_hw_v1.c:1009 hns_roce_v1_mr_free_work_fn() error: we previously assumed 'hr_qp' could be null Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Shaobo Xu <xushao...@huawei.com>

[PATCH for-next 5/9] RDMA/hns: Set rdma_ah_attr type for querying qp

2017-09-27 Thread Wei Hu (Xavier)
From: Lijun Ou <ouli...@huawei.com> When querying qp, It needs to return RoCE device ah_attr type that may be specific to RoCE devices. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaobo Xu <

[PATCH for-next 0/9] Bug fixes & Code improvements in hip06 and hip08 RoCE driver

2017-09-27 Thread Wei Hu (Xavier)
alling unregister_inetaddr_notifier function RDMA/hns: Remove unused struct members in hns-abi.h RDMA/hns: Replace usleep_range with udelay when checking command status Wei Hu (Xavier) (1): RDMA/hns: Add return statement when checking error in hns_roce_v1_mr_free_work_fn d

[PATCH for-next 9/9] RDMA/hns: Replace usleep_range with udelay when checking command status

2017-09-27 Thread Wei Hu (Xavier)
s-roce-hw-v2] Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaobo Xu <xushao...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[PATCH for-next 3/9] RDMA/hns: Add return statement when kzalloc return NULL in hns_roce_v1_recreate_lp_qp

2017-09-27 Thread Wei Hu (Xavier)
zalloc returns null) Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaobo Xu <xushao...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/d

[PATCH for-next 2/9] RDMA/hns: Factor out the code for checking sdb status into a new function

2017-09-27 Thread Wei Hu (Xavier)
eckpatch.pl comment style) The warning from static checker: drivers/infiniband/hw/hns/hns_roce_hw_v1.c:3562 check_qp_db_process_status() warn: inconsistent indenting Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Shaobo X

[PATCH for-next 1/9] RDMA/hns: Modify the value with rd_rd of qp_attr

2017-09-27 Thread Wei Hu (Xavier)
From: Lijun Ou <ouli...@huawei.com> The value of max_rd_atomic and max_dest_rd_atomic in query_qp are incorrect. It should be assigned by left shifting of the bit in hip06 SoC. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.co

[PATCH for-next 7/9] RDMA/hns: Remove unnecessarily calling unregister_inetaddr_notifier function

2017-09-27 Thread Wei Hu (Xavier)
From: Lijun Ou <ouli...@huawei.com> When the driver doesn't call register_inetaddr_notifier function, it need not call unregister_inetaddr_notifier to unregister inet addr. This patch fixes it. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.h

  1   2   >