How to Enable Hardware Checksum on Intel 82546 GBE and e1000-4.4.19 driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi all,

I am attempting to simulate zerocopy on my machine and I am just learning kernel hacking (very naive). I have Intel 82546 GBE and e1000-4.4.19 drivers for it.

I have commented out the calls to csum_and_copy_from_user() function in both tcp_copy_to_page and skb_add_data functions in linux/net/ipv4/tcp.c, which essentialy does the copy of data form the user space to kernel space and calulates checksum.
Can any one tell me how to enable the hardware checksumming, so that hardware calculates the correct checksum on the (Non relevant) data present in the kernel buffer and the receiveing end should think that all went fine.
In addition to setting some parameter in the driver, I think I must set some parameters at the tcp level so the driver realizes that checksum is not done in the above layers and must be don by hardware when it reseives the skbuff.

Thanking You
Shesha





_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux