qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v9 1/5] Adding utility function net_checksum_add


From: Dmitry Fleytman
Subject: Re: [Qemu-devel] [PATCH v9 1/5] Adding utility function net_checksum_add_cont() that allows checksum calculation of scattered data with odd chunk sizes
Date: Mon, 21 Jan 2013 14:01:54 +0200

Fixed. Thanks.


On Wed, Jan 16, 2013 at 4:27 PM, Stefan Hajnoczi <address@hidden> wrote:
On Sat, Jan 12, 2013 at 06:09:42PM +0200, Dmitry Fleytman wrote:
> +static inline uint32_t
> +net_checksum_add(int len, uint8_t *buf)
> +{
> +    return net_checksum_add_cont(len, buf, 0);
> +}
> +
> +static inline uint16_t
> +net_raw_checksum(uint8_t *data, int length)
> +{
> +  return net_checksum_finish(net_checksum_add(length, data));
> +}

4-space indentation.  Don't bother resending because of this, it can be
fixed when merging the patch.

Stefan



--
Dmitry Fleytman
Technology Expert and Consultant,

Daynix Computing Ltd.

Cell: +972-54-2819481

Skype: dmitry.fleytman

reply via email to

[Prev in Thread] Current Thread [Next in Thread]