public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* why ibv_wc src_qp is zero
@ 2019-08-21 12:14 Liu, Changcheng
  2019-08-21 12:25 ` Jason Gunthorpe
  0 siblings, 1 reply; 3+ messages in thread
From: Liu, Changcheng @ 2019-08-21 12:14 UTC (permalink / raw)
  To: linux-rdma

Hi all,
   Does anyone know the usage of the src_qp field in struct ibv_wc?

   I’m using RC transport type with only Send Operation on Send Queue.
     On the requester side, when SQ WR is finished, there’s one WCE is on CQ. ibv_wc::src_qp is checked with zero value.
     On the responder side, when RQ WR is finished, there’s one WCE is on CQ. ibv_wc::src_qp is checked with zero value too.
   Why the ibv_wc::src_qp field is zero instead of recording the peer's qp number?

--Thanks
Changcheng

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: why ibv_wc src_qp is zero
  2019-08-21 12:14 why ibv_wc src_qp is zero Liu, Changcheng
@ 2019-08-21 12:25 ` Jason Gunthorpe
  2019-08-21 12:30   ` Liu, Changcheng
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Gunthorpe @ 2019-08-21 12:25 UTC (permalink / raw)
  To: Liu, Changcheng; +Cc: linux-rdma

On Wed, Aug 21, 2019 at 08:14:36PM +0800, Liu, Changcheng wrote:
> Hi all,
>    Does anyone know the usage of the src_qp field in struct ibv_wc?
> 
>    I’m using RC transport type with only Send Operation on Send Queue.
>      On the requester side, when SQ WR is finished, there’s one WCE is on CQ. ibv_wc::src_qp is checked with zero value.
>      On the responder side, when RQ WR is finished, there’s one WCE is on CQ. ibv_wc::src_qp is checked with zero value too.
>    Why the ibv_wc::src_qp field is zero instead of recording the peer's qp number?

It is only supported for UD QPs

Jason

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: why ibv_wc src_qp is zero
  2019-08-21 12:25 ` Jason Gunthorpe
@ 2019-08-21 12:30   ` Liu, Changcheng
  0 siblings, 0 replies; 3+ messages in thread
From: Liu, Changcheng @ 2019-08-21 12:30 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: linux-rdma

On 09:25 Wed 21 Aug, Jason Gunthorpe wrote:
> On Wed, Aug 21, 2019 at 08:14:36PM +0800, Liu, Changcheng wrote:
> > Hi all,
> >    Does anyone know the usage of the src_qp field in struct ibv_wc?
> > 
> >    I’m using RC transport type with only Send Operation on Send Queue.
> >      On the requester side, when SQ WR is finished, there’s one WCE is on CQ. ibv_wc::src_qp is checked with zero value.
> >      On the responder side, when RQ WR is finished, there’s one WCE is on CQ. ibv_wc::src_qp is checked with zero value too.
> >    Why the ibv_wc::src_qp field is zero instead of recording the peer's qp number?
> 
> It is only supported for UD QPs

Thanks a lot for your info. I'll check it the protocol.

--Thanks
Changcheng 

> 
> Jason

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-21 12:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-21 12:14 why ibv_wc src_qp is zero Liu, Changcheng
2019-08-21 12:25 ` Jason Gunthorpe
2019-08-21 12:30   ` Liu, Changcheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox