Andrew Gallatin wrote:
> Xiu-Yan Wang wrote:
>> Tom Chen wrote:
>>> Hi,
>>>
>>> I am studying how to implement checksum offload on solaris platform. 
>>> hcksum_retrieve API is used in many NIC drivers with such capability. But, 
>>> I could not find any description of this API. there is no man page of this 
>>> API on Solaris 10 and OpenSolaris. Can someone give me some explanation of 
>>> each fields? I guess many other newcomers may also have such confusion.
>> hcksum_retrieve() is not a public interface and the definition of it is
>> a bit obscure.
>>
>>> Another issue is the NIC, which I am working, can do TCP/UDP checksum 
>>> offload but it requires GLD driver to tell it the offset of TCP/UDP data 
>>> from the first byte of the outmost MAC packet ie. the sum of MAC header 
>>> length+IP header  length+TCP/UDP header  length.
>>> Can I use ip_hdr_length_v6( ) to calculate this offset for IPv6 packets?
>> You'd better sparse the packet to retrieve such information by the
>> driver itself.
>>
>> As far as checksum offload is concerned, the interfaces provided by the
>> stack are not driver-friendly.
> 
> If the interfaces are ever made driver friendly, it would be nice
> for them provide this sort of information.  Having many drivers
> all have to parse packets themselves to recover information which
> the stack already knows seems like a bad practice.

I totally agree with you on this. 6674353 has been filed for this. Hope
it will be fixed soon.

--Lucy

> 
> Drew
> _______________________________________________
> networking-discuss mailing list
> [email protected]
> 

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to