Re: Why verify checksum when CHECKSUM_HW is set in receiving path?

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

 



--- "David S. Miller" <davem@redhat.com> wrote:
> Devices which implement CHECKSUM_HW, put the raw
> 16-bit two's complement checksum of the entire
> packet'ss
> contents in skb->csum, we have to turn this into a
> fully compute TCP checksum and verify it.

It seems that setting "skb->ip_summed" to
"CHECKSUM_HW" makes software do more. If a NIC can
verify TCP/UDP checksum as well as calculate IP
payload checksum, is it better to set "skb->ip_summed"
to "CHECKSUM_UNNECESSARY" instead of "CHECKSUM_HW"
even it can provide IP payload checksum? I don't think
the software need to know TCP/UDP checksum if it knows
the checksum is correct. Is it right?

Bluesea


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.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