Offloading checksums to H/W
Offloading checksums to H/W
- Subject: Offloading checksums to H/W
- From: Platon Fomichev <email@hidden>
- Date: Fri, 24 Aug 2007 19:39:12 +0400
Hi Everybody
It seems I can't figure how to correctly offload my TCP/UDP packet to
the H/W network checksumming routines. It seems rather inconvenient
that I have to add all typical checksumming code into the driver -
because neither of mbuf API can actually re-checksum the packet. As
for H/W support - I can see from the flags that my H/W supports TCP
offload but if I set tcp checksum f.ex. to zero in my Interface
filter the packet will not be checksummed later in the hardware.
Thus some questions:
1) Seems that there is no kernel API to do IP checksumming in Mac -
is it true, if not how to do it? mbuf finalize func does not do it.
2) Seems that hardware TCP/UDP checksum offload is actually missing
from Mac at all? At least it is not present on MacBook/MacBook pro.
If yes why does it advertise itself using ifnet API as capable to do
it? If I am wrong how can I check that my network adapter is actually
doing its work and how can I benefit from this in my code (I am
actively changing the packet)
Best regards,
Platon.
On Aug 23, 2007, at 9:05 AM, JanakiRam wrote:
Hi ALL,
I'm newbie to this kernel prorgamming. Please clarify my
following query.
I'm using printf for logging messages from my kext. One
observation is all my logs are not getting printed when i start my
kext using kextload. Its not consitent , how many logs are going
to get printed every time i load the kext.
Please help me to solve this. Thanks in Advance.
-JanakiRam.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40alarity.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden