[tcpip] Do not fall back to using unoptimised TCP/IP checksumming

Require architecture-specific code to make a deliberate choice to use
the unoptimised generic_tcpip_continue_chksum() function, if there is
no optimised version available.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2016-05-04 13:30:37 +01:00
parent 9f91df422b
commit 1e066431a4
3 changed files with 8 additions and 15 deletions

View File

@@ -42,8 +42,8 @@ extern char x86_tcpip_loop_end[];
* @v len Length of data buffer
* @ret cksum Updated checksum, in network byte order
*/
uint16_t x86_tcpip_continue_chksum ( uint16_t partial,
const void *data, size_t len ) {
uint16_t tcpip_continue_chksum ( uint16_t partial, const void *data,
size_t len ) {
unsigned long sum = ( ( ~partial ) & 0xffff );
unsigned long initial_word_count;
unsigned long loop_count;