Re: TCP Checksum offload in 2.4.19

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

 



> Instead of making changes to my application to use
> sendfile(..), is it possible for me to enable zerocopy
> in 2.4.19 kernel (using a patch or something) so that
> tx checksum can be offloaded to the h/w for every TCP
> packet?

tx checksum offload and zerocopy are two different things.
checksum offload doesnt require zerocopy enabled. It can
be done for both sendmsg() and sendfile() code paths, but
provides significant gain only in the sendfile() code path
which has eliminated the expensive user->kernel copy. In
the sendmsg() case, the checksum is computed while doing
the copy operation. 

Doing zerocopy on the sendmsg() code path is nontrivial
and the end result is really sendfile().

thanks,
Nivedita 

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux