|
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 |
On Sat, Jan 12, 2013 at 06:09:42PM +0200, Dmitry Fleytman wrote:4-space indentation. Don't bother resending because of this, it can be
> +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));
> +}
fixed when merging the patch.
Stefan
Daynix Computing Ltd.
Cell: +972-54-2819481
Skype: dmitry.fleytman[Prev in Thread] | Current Thread | [Next in Thread] |