Posting mad frame on ib_recv_wr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi
   I checked archives and sources as well, but couldn't get a convincing answer. We have a RDMA NIC, and our nic presents whole rocev2(ipv4) mad frame on
the hw receive queue. I am trying to copy(instead of dma, due to some limitation on hw side) this to ib_recv_wr sglist addr, but I am not sure how this should be done exactly.
I tried copying from (frame_start + ETH_HLEN) to sglist[0].addr, but this resulted in "MAD received with unsupported base version" error in core/mad.c.
The only scheme I figured by looking into source is to copy iphr from the frame at (sglist[0].addr + 20) and then skip udph, bth, deth, and
copy rest of the frame(mad) at sglist[0].addr + 20 + sizeof(iph). But I am not sure if this is correct.

Also in the poll what should be the flags on wc? Should I set both IB_WC_GRH and IB_WC_WITH_NETWORK_HDR_TYPE? And set network_hdr_type to IPv4?

Thanks
-syed
This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux