[openib-general] can i post a send request with 0 bytes with the inline bit enabled?

Itamar Rabenstein itamar at mellanox.co.il
Mon Nov 21 07:38:03 PST 2005


No.

Mellanox hardware interprets a sge with length 1 that the value of the
lenght field in the first element is 0 as a 2 GB buffer
Mellanox hardware interprets a sge with length 0 as 0 byte lenght send .

 Itamar


> -----Original Message-----
> From: James Lentini [mailto:jlentini at netapp.com]
> Sent: Monday, November 21, 2005 5:26 PM
> To: Dotan Barak
> Cc: openib-general at openib.org
> Subject: Re: [openib-general] can i post a send request with 0 bytes
> with the inline bit enabled?
> 
> 
> 
> Mellanox hardware interprets an sge with length 0 as a 2 GB buffer.
> 
> Your memory region is probably too small and therefore you receive a 
> protection error.
> 
> james
> 
> On Mon, 21 Nov 2005, Dotan Barak wrote:
> 
> > Hi.
> > 
> > i tried to do following thing in user level: i posted a 
> send request 
> > with 0 bytes (the gather list length is 0) with the send opcode and 
> > the inline bit was enabled and i got completion with error.
> > 
> > should the driver handle it? (and post send of 0 bytes with inline 
> > enabled should generate good completion) or the user should know 
> > that this scenario is illegal?
> > 
> > what do you think about it?
> > 
> > thanks
> > Dotan Barak
> > Software Verification Engineer
> > Mellanox Technologies LTD
> > Tel: +972-4-9097200 Ext: 231 Fax: +972-4-9593245
> > P.O. Box 86 Yokneam 20692 ISRAEL.
> > Home: +972-77-8841095  Cell: 052-4222383
> > 
> > [ May the fork be with you ]
> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
> 
> To unsubscribe, please visit 
http://openib.org/mailman/listinfo/openib-general



More information about the general mailing list