summaryrefslogtreecommitdiffstats
path: root/src/net/tcpip.c
diff options
context:
space:
mode:
authorMichael Brown2012-06-27 13:02:58 +0200
committerMichael Brown2012-06-27 20:15:17 +0200
commit1d77d032168bd495c53589cca596131a992473c4 (patch)
treef6ade4bb1e404c1fcf66bfa647cd7d9273e66eb2 /src/net/tcpip.c
parent[libc] Simplify memcpy() implementation (diff)
downloadipxe-1d77d032168bd495c53589cca596131a992473c4.tar.gz
ipxe-1d77d032168bd495c53589cca596131a992473c4.tar.xz
ipxe-1d77d032168bd495c53589cca596131a992473c4.zip
[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 <mcb30@ipxe.org>
Diffstat (limited to 'src/net/tcpip.c')
-rw-r--r--src/net/tcpip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tcpip.c b/src/net/tcpip.c
index 4451bf11..8e187f7e 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;