Re: CPU instruction to calculate tcp checksum and udp integrity?
From: Peter Teoh <hidden>
Date: 2011-05-26 02:57:29
Also in:
kernelnewbies
From: Peter Teoh <hidden>
Date: 2011-05-26 02:57:29
Also in:
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 [off-list ref] 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@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Regards, Peter Teoh