diff options
author | Michael Brown <mcb30@ipxe.org> | 2016-05-10 17:13:05 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2016-05-11 08:16:36 +0100 |
commit | 47931a4de53ccdeda061c59aa0919f152cf0dfdf (patch) | |
tree | 70c3de07d8027780593203865ca32aff79aca90b /src/arch/arm32/include/bits | |
parent | 95716ece91a29f1d122741ec3dd307765d96e314 (diff) | |
download | ipxe-47931a4de53ccdeda061c59aa0919f152cf0dfdf.tar.gz |
[arm] Add optimised TCP/IP checksumming for 64-bit ARM
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/arm32/include/bits')
-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 000000000..fc3c5b3ff --- /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 */ |