diff options
author | Michael Brown | 2016-05-10 18:13:05 +0200 |
---|---|---|
committer | Michael Brown | 2016-05-11 09:16:36 +0200 |
commit | 47931a4de53ccdeda061c59aa0919f152cf0dfdf (patch) | |
tree | 70c3de07d8027780593203865ca32aff79aca90b /src/arch/arm32 | |
parent | [arm] Add optimised string functions for 64-bit ARM (diff) | |
download | ipxe-47931a4de53ccdeda061c59aa0919f152cf0dfdf.tar.gz ipxe-47931a4de53ccdeda061c59aa0919f152cf0dfdf.tar.xz ipxe-47931a4de53ccdeda061c59aa0919f152cf0dfdf.zip |
[arm] Add optimised TCP/IP checksumming for 64-bit ARM
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/arm32')
-rw-r--r-- | src/arch/arm32/include/bits/tcpip.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/arch/arm32/include/bits/tcpip.h b/src/arch/arm32/include/bits/tcpip.h new file mode 100644 index 00000000..fc3c5b3f --- /dev/null +++ b/src/arch/arm32/include/bits/tcpip.h @@ -0,0 +1,19 @@ +#ifndef _BITS_TCPIP_H +#define _BITS_TCPIP_H + +/** @file + * + * Transport-network layer interface + * + */ + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +static inline __attribute__ (( always_inline )) uint16_t +tcpip_continue_chksum ( uint16_t partial, const void *data, size_t len ) { + + /* Not yet optimised */ + return generic_tcpip_continue_chksum ( partial, data, len ); +} + +#endif /* _BITS_TCPIP_H */ |