Hello, My PCI Network Interface Card(NIC) is 32 Little Endian. Host needs to tell it the addresses of packet send/receive buffer. I am wondering how to set up the [b]ddi_device_acc_attr[/b] (data access attributes structure) correctly which is critical for [i]ddi_dma_mem_alloc[/i] function to work correctly.
>From the man page of ddi_device_acc_attr, it looks like for send buffer, >devacc_attr_endian_flags must be DDI_STRUCTURE_LE_ACC, because the reader is >PCi card which is Little Endian(LE). But how about receive buffer which can be >LE or BE? Also, when I write packet data to send buffer, do i need to do some swapping manually? how about when reading from receive buffer, do i also need swapping? Can somebody kindly shed some light on the endianness issue that confuse many newbies? Tom This message posted from opensolaris.org _______________________________________________ networking-discuss mailing list [email protected]
