* CPU instruction to calculate tcp checksum and udp integrity? @ 2011-05-23 15:26 Jon Zhou 2011-05-26 2:57 ` Peter Teoh 0 siblings, 1 reply; 2+ messages in thread From: Jon Zhou @ 2011-05-23 15:26 UTC (permalink / raw) To: kernelnewbies hi now I am using sw to calculate the tcp checksum, is there CPU(nehalem) instruction or NIC /kernel API to do such thing? thanks a lot jon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110523/d4b62552/attachment.html ^ permalink raw reply [flat|nested] 2+ messages in thread
* CPU instruction to calculate tcp checksum and udp integrity? 2011-05-23 15:26 CPU instruction to calculate tcp checksum and udp integrity? Jon Zhou @ 2011-05-26 2:57 ` Peter Teoh 0 siblings, 0 replies; 2+ messages in thread From: Peter Teoh @ 2011-05-26 2:57 UTC (permalink / raw) To: kernelnewbies In net/ipv4/tcp_ipv4.c: /* This routine computes an IPv4 TCP checksum. */ void tcp_v4_send_check(struct sock *sk, struct sk_buff *skb) { struct inet_sock *inet = inet_sk(sk); __tcp_v4_send_check(skb, inet->inet_saddr, inet->inet_daddr); } EXPORT_SYMBOL(tcp_v4_send_check); On Mon, May 23, 2011 at 11:26 PM, Jon Zhou <Jon.Zhou@jdsu.com> wrote: > hi > now I am using sw to calculate the tcp checksum, is there CPU(nehalem) > instruction or NIC /kernel API to do such thing? > > thanks a lot > jon > > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > > -- Regards, Peter Teoh ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-26 2:57 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-05-23 15:26 CPU instruction to calculate tcp checksum and udp integrity? Jon Zhou 2011-05-26 2:57 ` Peter Teoh
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).