Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Nov 2013 02:23:28 +0100
From:      =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= <olivier@cochard.me>
To:        Luigi Rizzo <luigi@freebsd.org>
Cc:        svn-src-head <svn-src-head@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, src-committers <src-committers@freebsd.org>
Subject:   Re: svn commit: r257529 - in head: share/man/man4 sys/conf sys/dev/e1000 sys/dev/ixgbe sys/dev/netmap sys/dev/re sys/net tools/tools/netmap
Message-ID:  <CA%2Bq%2BTcrwrZ_fp=9m8k9t0upfWHWDwDtUXdC%2BnPsbtgxPD=ZFyg@mail.gmail.com>
In-Reply-To: <201311012121.rA1LLFCd058167@svn.freebsd.org>
References:  <201311012121.rA1LLFCd058167@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 1, 2013 at 10:21 PM, Luigi Rizzo <luigi@freebsd.org> wrote:
>
> Author: luigi
> Date: Fri Nov  1 21:21:14 2013
> New Revision: 257529
> URL: http://svnweb.freebsd.org/changeset/base/257529
>
> Log:
>   update to the latest netmap snapshot.
>   This includes the following:
>   - use separate memory regions for VALE ports
>   - locking fixes
>   - some simplifications in the NIC-specific routines
>   - performance improvements for the VALE switch
>   - some new features in the pkt-gen test program
>

Thanks a lot's for adding the range feature to pkt-gen !

But there is a problem with this new option: The checksum is not
updated when the IP addresses are updated.

If we use the IP src or dst range, only the packet using the first IP
addresse has a correct checksum, all other paquets checksum are wrong.

As example, if I start pkt-gen with -d 2.3.3.1-2.3.3.4 -s
1.3.3.1-1.3.3.4, give me these errors :

[root@bsdrp2]~# tcpdump -npi igb2 -c 100 -v
tcpdump: listening on igb2, link-type EN10MB (Ethernet), capture size
65535 bytes
00:00:56.439325 IP (tos 0x10, ttl 64, id 0, offset 0, flags [DF],
proto UDP (17), length 28, bad cksum 31ba (->31b9)!)
  1.3.3.2.0 > 2.3.3.1.0: UDP, length 0
00:00:56.439325 IP (tos 0x10, ttl 64, id 0, offset 0, flags [DF],
proto UDP (17), length 28, bad cksum 31ba (->31b5)!)    1.3.3.3.0 >
2.3.3.4.0: UDP, length 0
00:00:56.439326 IP (tos 0x10, ttl 64, id 0, offset 0, flags [DF],
proto UDP (17), length 28, bad cksum 31ba (->31b8)!)    1.3.3.3.0 >
2.3.3.1.0: UDP, length 0
00:00:56.439327 IP (tos 0x10, ttl 64, id 0, offset 0, flags [DF],
proto UDP (17), length 28, bad cksum 31ba (->31b8)!)    1.3.3.2.0 >
2.3.3.2.0: UDP, length 0
00:00:56.439330 IP (tos 0x10, ttl 64, id 0, offset 0, flags [DF],
proto UDP (17), length 28)    1.3.3.1.0 > 2.3.3.1.0: UDP, length 0
00:00:56.439332 IP (tos 0x10, ttl 64, id 0, offset 0, flags [DF],
proto UDP (17), length 28, bad cksum 31ba (->31b7)!)    1.3.3.4.0 >
2.3.3.1.0: UDP, length 0
00:00:56.439332 IP (tos 0x10, ttl 64, id 0, offset 0, flags [DF],
proto UDP (17), length 28, bad cksum 31ba (->31b6)!)    1.3.3.4.0 >
2.3.3.2.0: UDP, length 0
00:00:56.439333 IP (tos 0x10, ttl 64, id 0, offset 0, flags [DF],
proto UDP (17), length 28, bad cksum 31ba (->31b9)!)    1.3.3.1.0 >
2.3.3.2.0: UDP, length 0
00:00:56.439334 IP (tos 0x10, ttl 64, id 0, offset 0, flags [DF],
proto UDP (17), length 28, bad cksum 31ba (->31b8)!)    1.3.3.1.0 >
2.3.3.3.0: UDP, length 0

Regards,

Olivier



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bq%2BTcrwrZ_fp=9m8k9t0upfWHWDwDtUXdC%2BnPsbtgxPD=ZFyg>