[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: |
Stefan Hajnoczi |
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: |
Wed, 16 Jan 2013 15:27:56 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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
- Re: [Qemu-devel] [PATCH v9 3/5] Adding common definitions for VMWARE devices, (continued)
[Qemu-devel] [PATCH v9 5/5] Adding VMXNET3 device implementation, Dmitry Fleytman, 2013/01/12
[Qemu-devel] [PATCH v9 1/5] Adding utility function net_checksum_add_cont() that allows checksum calculation of scattered data with odd chunk sizes, Dmitry Fleytman, 2013/01/12