From owner-svn-src-all@FreeBSD.ORG Sat Nov 9 01:23:50 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BB1DF96C; Sat, 9 Nov 2013 01:23:50 +0000 (UTC) (envelope-from cochard@gmail.com) Received: from mail-vc0-x231.google.com (mail-vc0-x231.google.com [IPv6:2607:f8b0:400c:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 438F52D7E; Sat, 9 Nov 2013 01:23:50 +0000 (UTC) Received: by mail-vc0-f177.google.com with SMTP id ib11so1884650vcb.8 for ; Fri, 08 Nov 2013 17:23:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=bLvTMuZhTdATh1UpAR6j4SfmMBTWhjVXZzVYT1joGUs=; b=bLP5jQk/9EKemXQ9t7YbjCtj8Wx8wbjSVb53AK1Vz6IJZw7BLgsiAt2Afi/NBnzIfW XIxlPm8erLbyQCnLrzErcwqYsZjRzPq/WQYEfJoWypNSh0aR3cZ+d6AUjwH4M6B6scxC lQz0JcWHwZEXJU8ebHrndB+hyQF0W9ksyld3rqwIcXO4mWpGd1tunX81n1V3/26qkoRD ZBlZ9k2kGNecdgTcbWuvqZT7YpW0Azchdmz1FU7JeoINsN9cBTNINmfaHaAHjrhIVyct wSLaIzPmnaJC5LUzaD3iQ8w3yGSM5JJBo1DIKYlsy4Osa42SqQQEFI7zFODR0ShwxVT6 58QA== X-Received: by 10.52.171.198 with SMTP id aw6mr330188vdc.51.1383960228667; Fri, 08 Nov 2013 17:23:48 -0800 (PST) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.58.1.72 with HTTP; Fri, 8 Nov 2013 17:23:28 -0800 (PST) In-Reply-To: <201311012121.rA1LLFCd058167@svn.freebsd.org> References: <201311012121.rA1LLFCd058167@svn.freebsd.org> From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= Date: Sat, 9 Nov 2013 02:23:28 +0100 X-Google-Sender-Auth: Hjh6gp_s_LbgyEDYYIJNC2BzdAo Message-ID: 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 To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-src-head , svn-src-all , src-committers X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Nov 2013 01:23:50 -0000 On Fri, Nov 1, 2013 at 10:21 PM, Luigi Rizzo 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