Re: [PATCH for-next v2 1/2] iw_cxgb4: RDMA write with immediate support

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

 



On Thu, Jul 26, 2018 at 02:16:00PM -0500, Steve Wise wrote:

> > Most apps choose to put a BE value in here, but any other
> > fixed-memory-order value would be fine.
> 
> My point was, the applications need to "know" what endianness their peer is,
> or both agree to put it in BE or LE.   IE The Verbs API doesn't do this for
> them and convert from host BO to a standard protocol-defined byte order.

Yes, of course. What was done wrong here is defining it as a u32 at
all, it really should have been

uint8_t imm_data[4];

To make it clear it is just an opaque application controlled buffer.

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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