Re: [Qemu-devel] [PATCH v2 1/3] net: improve UDP/TCP checksum computation.

2016-05-06 Thread Peter Maydell
On 6 May 2016 at 21:25, Jean-Christophe DUBOIS wrote: > Le 05/05/2016 16:17, Peter Maydell a écrit : >> >> On 23 April 2016 at 11:58, Jean-Christophe Dubois >> wrote: >>> +if (length < eth_get_l2_hdr_length(data) + sizeof(struct ip_header)) >>> { >>> return; >>> } >>> >>> -

Re: [Qemu-devel] [PATCH v2 1/3] net: improve UDP/TCP checksum computation.

2016-05-06 Thread Jean-Christophe DUBOIS
Le 05/05/2016 16:17, Peter Maydell a écrit : On 23 April 2016 at 11:58, Jean-Christophe Dubois wrote: This patch adds: * based on Eth, UDP, TCP struct present in eth.h instead of hardcoded indexes. * based on various macros present in eth.h. * allow to account for optional VLAN header. T

Re: [Qemu-devel] [PATCH v2 1/3] net: improve UDP/TCP checksum computation.

2016-05-05 Thread Peter Maydell
On 23 April 2016 at 11:58, Jean-Christophe Dubois wrote: > This patch adds: > * based on Eth, UDP, TCP struct present in eth.h instead of hardcoded > indexes. > * based on various macros present in eth.h. > * allow to account for optional VLAN header. This is doing several things: (1) changi

[Qemu-devel] [PATCH v2 1/3] net: improve UDP/TCP checksum computation.

2016-04-23 Thread Jean-Christophe Dubois
This patch adds: * based on Eth, UDP, TCP struct present in eth.h instead of hardcoded indexes. * based on various macros present in eth.h. * allow to account for optional VLAN header. Signed-off-by: Jean-Christophe Dubois --- net/checksum.c | 83 --