Offloading checksums to H/W
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Hi Everybody Thus some questions: Best regards, Platon. On Aug 23, 2007, at 9:05 AM, JanakiRam wrote: Hi ALL, Please help me to solve this. Thanks in Advance. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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. 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) 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. -JanakiRam. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/pfomichev% 40alarity.com This email sent to pfomichev@alarity.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Platon Fomichev