src/dpdk/drivers/net/e1000/base/e1000_manage.c
u8 e1000_calculate_checksum(u8 *buffer, u32 length)
{
	u32 i;
	u8 sum = 0;

	DEBUGFUNC("e1000_calculate_checksum");

	if (!buffer)
		return 0;

	for (i = 0; i < length; i++)
		sum += buffer[i];

	return (u8) (0 - sum);
}
/**
 *  e1000_calculate_checksum - Calculate checksum for buffer
 *  @buffer: pointer to EEPROM
 *  @length: size of EEPROM to calculate a checksum for
 *
 *  Calculates the checksum for some buffer on a specified length.  The
 *  checksum calculated is returned.
 **/
Calculate checksum for buffer
@buffer: pointer to EEPROM
@length: size of EEPROM to calculate a checksum for

Calculates the checksum for some buffer on a specified length.  The
checksum calculated is returned.
Calculate checksum for buffer @buffer : pointer to EEPROM @length : size of EEPROM to calculate a checksum for Calculates the checksum for some buffer on a specified length . The checksum calculated is returned .
u8 e1000_calculate_checksum(u8 *buffer, u32 length)
{
	u32 i;
	u8 sum = 0;
	DEBUGFUNC("e1000_calculate_checksum");
	if (!buffer)
		return 0;
	for (i = 0; i < length; i++)
		sum += buffer[i];
	return (u8) (0 - sum);
}
u8 e1000_calculate_checksum ( u8 * buffer , u32 length ) { u32 i ; u8 sum = 0 ; DEBUGFUNC ( " " ) ; if ( ! buffer ) return 0 ; for ( i = 0 ; i < length ; i ++ ) sum += buffer [ i ] ; return ( u8 ) ( 0 - sum ) ; }
e1000_calculate_checksum - Calculate checksum for buffer
  @buffer: pointer to EEPROM
  @length: size of EEPROM to calculate a checksum for
e1000_calculate_checksum - Calculate checksum for buffer @buffer : pointer to EEPROM @length : size of EEPROM to calculate a checksum for