* [PATCH rdma-core] libhns: Update the size and member order of hns_roce_create_qp structure
@ 2017-09-30 8:51 Lijun Ou
[not found] ` <1506761477-47350-1-git-send-email-oulijun-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Lijun Ou @ 2017-09-30 8:51 UTC (permalink / raw)
To: dledford-H+wXaHxf7aLQT0dZR+AlfA,
jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA
In order to keep the size and member order with the
hns_roce_ib_create_qp sturcture of the kernel driver,
it need to update hns_roce_create_qp's structure
members. Otherwise, it will run fail.
Signed-off-by: Lijun Ou <oulijun-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
---
providers/hns/hns_roce_u_abi.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/providers/hns/hns_roce_u_abi.h b/providers/hns/hns_roce_u_abi.h
index e78f967..276d29d 100644
--- a/providers/hns/hns_roce_u_abi.h
+++ b/providers/hns/hns_roce_u_abi.h
@@ -61,9 +61,10 @@ struct hns_roce_create_cq_resp {
struct hns_roce_create_qp {
struct ibv_create_qp ibv_cmd;
__u64 buf_addr;
+ __u64 rsv;
__u8 log_sq_bb_count;
__u8 log_sq_stride;
- __u8 reserved[5];
+ __u8 reserved[6];
};
#endif /* _HNS_ROCE_U_ABI_H */
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH rdma-core] libhns: Update the size and member order of hns_roce_create_qp structure
[not found] ` <1506761477-47350-1-git-send-email-oulijun-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
@ 2017-09-30 15:45 ` Jason Gunthorpe
[not found] ` <20170930154518.GA14152-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Jason Gunthorpe @ 2017-09-30 15:45 UTC (permalink / raw)
To: Lijun Ou; +Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA,
linux-rdma-u79uwXL29TY76Z2rM5mHXA
On Sat, Sep 30, 2017 at 04:51:17PM +0800, Lijun Ou wrote:
> In order to keep the size and member order with the
> hns_roce_ib_create_qp sturcture of the kernel driver,
> it need to update hns_roce_create_qp's structure
> members. Otherwise, it will run fail.
What?
Did you break the uapi? What kernel patch does this match with?
Generally structs in the u_abi.h headers cannot be changed like this.
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH rdma-core] libhns: Update the size and member order of hns_roce_create_qp structure
[not found] ` <20170930154518.GA14152-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
@ 2017-09-30 16:05 ` Leon Romanovsky
[not found] ` <20170930160515.GG2965-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Leon Romanovsky @ 2017-09-30 16:05 UTC (permalink / raw)
To: Jason Gunthorpe
Cc: Lijun Ou, dledford-H+wXaHxf7aLQT0dZR+AlfA,
linux-rdma-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 864 bytes --]
On Sat, Sep 30, 2017 at 09:45:18AM -0600, Jason Gunthorpe wrote:
> On Sat, Sep 30, 2017 at 04:51:17PM +0800, Lijun Ou wrote:
> > In order to keep the size and member order with the
> > hns_roce_ib_create_qp sturcture of the kernel driver,
> > it need to update hns_roce_create_qp's structure
> > members. Otherwise, it will run fail.
>
> What?
>
> Did you break the uapi? What kernel patch does this match with?
>
> Generally structs in the u_abi.h headers cannot be changed like this.
Jason,
It was my suggestion to change rdma-core, because before they tried to
change kernel.
https://patchwork.kernel.org/patch/9975329/
>
> Jason
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH rdma-core] libhns: Update the size and member order of hns_roce_create_qp structure
[not found] ` <20170930160515.GG2965-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
@ 2017-09-30 16:07 ` Leon Romanovsky
2017-09-30 16:29 ` Jason Gunthorpe
1 sibling, 0 replies; 7+ messages in thread
From: Leon Romanovsky @ 2017-09-30 16:07 UTC (permalink / raw)
To: Jason Gunthorpe
Cc: Lijun Ou, dledford-H+wXaHxf7aLQT0dZR+AlfA,
linux-rdma-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 1095 bytes --]
On Sat, Sep 30, 2017 at 07:05:15PM +0300, Leon Romanovsky wrote:
> On Sat, Sep 30, 2017 at 09:45:18AM -0600, Jason Gunthorpe wrote:
> > On Sat, Sep 30, 2017 at 04:51:17PM +0800, Lijun Ou wrote:
> > > In order to keep the size and member order with the
> > > hns_roce_ib_create_qp sturcture of the kernel driver,
> > > it need to update hns_roce_create_qp's structure
> > > members. Otherwise, it will run fail.
> >
> > What?
> >
> > Did you break the uapi? What kernel patch does this match with?
> >
> > Generally structs in the u_abi.h headers cannot be changed like this.
>
> Jason,
>
> It was my suggestion to change rdma-core, because before they tried to
> change kernel.
>
> https://patchwork.kernel.org/patch/9975329/
>
And according to the git log on providers/hns/hns_roce_u_abi.h and
include/uapi/rdma/hns-abi.h, it never worked.
>
> >
> > Jason
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH rdma-core] libhns: Update the size and member order of hns_roce_create_qp structure
[not found] ` <20170930160515.GG2965-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-09-30 16:07 ` Leon Romanovsky
@ 2017-09-30 16:29 ` Jason Gunthorpe
[not found] ` <20170930162953.GA15393-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
1 sibling, 1 reply; 7+ messages in thread
From: Jason Gunthorpe @ 2017-09-30 16:29 UTC (permalink / raw)
To: Leon Romanovsky
Cc: Lijun Ou, dledford-H+wXaHxf7aLQT0dZR+AlfA,
linux-rdma-u79uwXL29TY76Z2rM5mHXA
On Sat, Sep 30, 2017 at 07:05:15PM +0300, Leon Romanovsky wrote:
> On Sat, Sep 30, 2017 at 09:45:18AM -0600, Jason Gunthorpe wrote:
> > On Sat, Sep 30, 2017 at 04:51:17PM +0800, Lijun Ou wrote:
> > > In order to keep the size and member order with the
> > > hns_roce_ib_create_qp sturcture of the kernel driver,
> > > it need to update hns_roce_create_qp's structure
> > > members. Otherwise, it will run fail.
> >
> > What?
> >
> > Did you break the uapi? What kernel patch does this match with?
> >
> > Generally structs in the u_abi.h headers cannot be changed like this.
>
> Jason,
>
> It was my suggestion to change rdma-core, because before they tried to
> change kernel.
>
> https://patchwork.kernel.org/patch/9975329/
Ugh, better commit messages please.
Also, the patch is wrong, it needs to exactly duplicate the current
kernel struct word for word. You can send some thing else once the
kernel side is accepted.
How did we get to a point where hns in rdma-core doesn't work with the
kernel code? Is huawei not testing this stuff?
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH rdma-core] libhns: Update the size and member order of hns_roce_create_qp structure
[not found] ` <20170930162953.GA15393-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
@ 2017-10-01 5:28 ` Leon Romanovsky
2017-10-01 14:39 ` Wei Hu (Xavier)
1 sibling, 0 replies; 7+ messages in thread
From: Leon Romanovsky @ 2017-10-01 5:28 UTC (permalink / raw)
To: Jason Gunthorpe
Cc: Lijun Ou, dledford-H+wXaHxf7aLQT0dZR+AlfA,
linux-rdma-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 253 bytes --]
On Sat, Sep 30, 2017 at 10:29:53AM -0600, Jason Gunthorpe wrote:
> How did we get to a point where hns in rdma-core doesn't work with the
> kernel code? Is huawei not testing this stuff?
You probably know the answer by yourself now.
Thanks
>
> Jason
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH rdma-core] libhns: Update the size and member order of hns_roce_create_qp structure
[not found] ` <20170930162953.GA15393-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-10-01 5:28 ` Leon Romanovsky
@ 2017-10-01 14:39 ` Wei Hu (Xavier)
1 sibling, 0 replies; 7+ messages in thread
From: Wei Hu (Xavier) @ 2017-10-01 14:39 UTC (permalink / raw)
To: Jason Gunthorpe, Leon Romanovsky
Cc: Lijun Ou, dledford-H+wXaHxf7aLQT0dZR+AlfA,
linux-rdma-u79uwXL29TY76Z2rM5mHXA, shaoboxu-WVlzvzqoTvw
On 2017/10/1 0:29, Jason Gunthorpe wrote:
> On Sat, Sep 30, 2017 at 07:05:15PM +0300, Leon Romanovsky wrote:
>> On Sat, Sep 30, 2017 at 09:45:18AM -0600, Jason Gunthorpe wrote:
>>> On Sat, Sep 30, 2017 at 04:51:17PM +0800, Lijun Ou wrote:
>>>> In order to keep the size and member order with the
>>>> hns_roce_ib_create_qp sturcture of the kernel driver,
>>>> it need to update hns_roce_create_qp's structure
>>>> members. Otherwise, it will run fail.
>>> What?
>>>
>>> Did you break the uapi? What kernel patch does this match with?
>>>
>>> Generally structs in the u_abi.h headers cannot be changed like this.
>> Jason,
>>
>> It was my suggestion to change rdma-core, because before they tried to
>> change kernel.
>>
>> https://patchwork.kernel.org/patch/9975329/
> Ugh, better commit messages please.
>
> Also, the patch is wrong, it needs to exactly duplicate the current
> kernel struct word for word. You can send some thing else once the
> kernel side is accepted.
>
> How did we get to a point where hns in rdma-core doesn't work with the
> kernel codse? Is huawei not testing this stuff?
Hi, Jason
In fact testing is mandatory in our development process. sorry for
this fault.
We will do our best to avoid the occurrence of this kind of problem.
And we will send patch v2 at your suggestion. Thanks.
Regards
Wei Hu
> Jason
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-10-01 14:39 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-30 8:51 [PATCH rdma-core] libhns: Update the size and member order of hns_roce_create_qp structure Lijun Ou
[not found] ` <1506761477-47350-1-git-send-email-oulijun-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2017-09-30 15:45 ` Jason Gunthorpe
[not found] ` <20170930154518.GA14152-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-09-30 16:05 ` Leon Romanovsky
[not found] ` <20170930160515.GG2965-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-09-30 16:07 ` Leon Romanovsky
2017-09-30 16:29 ` Jason Gunthorpe
[not found] ` <20170930162953.GA15393-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-10-01 5:28 ` Leon Romanovsky
2017-10-01 14:39 ` Wei Hu (Xavier)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).