Re: Are "skb->data" physically continuous?

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

 



--- Nick Patavalis <npat@inaccessnetworks.com> wrote:
> What I'm not sure about is whether the kernel or the
> hardware does the
> IP-header checksum calculation

The kernel calculate IP-header checksum in both Rx and
Tx path.

In kernel 2.4.22, 
Rx path, ip_rcv() calls ip_fast_csum() to calculate
and verify IP header checksum (ip_input.c, line 418);
Tx path, ip_queue_xmit2() calls ip_send_check(iph) to
add IP header checksum (ip_output.c, line 317).

In kernel 2.6.0-test2
Rx path, ip_rcv() calls ip_fast_csum() to calculate
and verify IP header checksum (ip_input.c, line 404);
Tx path, ip_queue_xmit() calls ip_send_check(iph) to
add IP header checksum (ip_output.c, line 383).

Bluesea


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-
: 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