[<prev] [next>] [day] [month] [year] [list]
Message-ID: <BANLkTimtRFFNWthCN1ziLtuNvFYAi0WHGg@mail.gmail.com>
Date: Thu, 26 May 2011 10:57:28 +0800
From: Peter Teoh <htmldeveloper@...il.com>
To: Jon Zhou <Jon.Zhou@...u.com>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"kernelnewbies@...nelnewbies.org" <kernelnewbies@...nelnewbies.org>
Subject: Re: CPU instruction to calculate tcp checksum and udp integrity?
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@...u.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@...nelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
--
Regards,
Peter Teoh
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists