From 1d77d032168bd495c53589cca596131a992473c4 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 27 Jun 2012 12:02:58 +0100 Subject: [tcpip] Allow for architecture-specific TCP/IP checksum routines Calculating the TCP/IP checksum on received packets accounts for a substantial fraction of the response latency. Signed-off-by: Michael Brown --- src/net/tcpip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net') diff --git a/src/net/tcpip.c b/src/net/tcpip.c index 4451bf111..8e187f7ec 100644 --- a/src/net/tcpip.c +++ b/src/net/tcpip.c @@ -97,8 +97,8 @@ int tcpip_tx ( struct io_buffer *iobuf, struct tcpip_protocol *tcpip_protocol, * or both. Deciding which to swap is left as an exercise for the * interested reader. */ -uint16_t tcpip_continue_chksum ( uint16_t partial, const void *data, - size_t len ) { +uint16_t generic_tcpip_continue_chksum ( uint16_t partial, + const void *data, size_t len ) { unsigned int cksum = ( ( ~partial ) & 0xffff ); unsigned int value; unsigned int i; -- cgit v1.2.3-55-g7522