Received: from eggs.gnu.org ([208.118.235.92]:39119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvTyH-0005no-FN for qemu-devel@nongnu.org; Wed, 16 Jan 2013 09:28:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvTyF-0008FY-C1 for qemu-devel@nongnu.org; Wed, 16 Jan 2013 09:28:04 -0500 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:44036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvTyF-0008F8-5j for qemu-devel@nongnu.org; Wed, 16 Jan 2013 09:28:03 -0500 Received: by mail-wi0-f170.google.com with SMTP id hq7so3579070wib.5 for ; Wed, 16 Jan 2013 06:28:02 -0800 (PST) Date: Wed, 16 Jan 2013 15:27:56 +0100 From: Stefan Hajnoczi Message-ID: <20130116142756.GA9679@stefanha-thinkpad.redhat.com> References: <1358006986-7248-1-git-send-email-dmitry@daynix.com> <1358006986-7248-2-git-send-email-dmitry@daynix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1358006986-7248-2-git-send-email-dmitry@daynix.com> 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dmitry Fleytman Cc: Yan Vugenfirer , Gerhard Wiesinger , qemu-devel@nongnu.org, Anthony Liguori , Paolo Bonzini 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