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

Olivier Cochard-Labbé olivier at cochard.me
Sat Nov 9 01:23:50 UTC 2013


On Fri, Nov 1, 2013 at 10:21 PM, Luigi Rizzo <luigi at 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 at 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


More information about the svn-src-all mailing list