CPU instruction to calculate tcp checksum and udp integrity?
Peter Teoh
htmldeveloper at gmail.com
Wed May 25 22:57:28 EDT 2011
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 at 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
More information about the Kernelnewbies
mailing list