From owner-freebsd-net@FreeBSD.ORG Tue Oct 7 04:04:37 2014 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A6D78B89 for ; Tue, 7 Oct 2014 04:04:37 +0000 (UTC) Received: from mail-qa0-f45.google.com (mail-qa0-f45.google.com [209.85.216.45]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 699CCA8A for ; Tue, 7 Oct 2014 04:04:36 +0000 (UTC) Received: by mail-qa0-f45.google.com with SMTP id s7so4428454qap.18 for ; Mon, 06 Oct 2014 21:04:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=LKRC469c7vv/IuRC5aXEmjQQ7Ag4hdBT57Gdv+oExNA=; b=HGqPGpLj5mA1g5YkznM2C15/T4B7C0mCLk+LuwpiaNKcbXbckub4qZt+D1z0n+IRFJ UbHXCY2eGoQ+PQNEOKq1bpOzSw/Fq0MYLG70gfgFtDM0aoEpR1LlInNYLSEIezVywyqi vw4rzfwDxKb8wlcxGkHeTe3JPNQ8kKhXCvI2/VvquEtg7O0Zpw5GcIDn42Kxd5BZHCu8 6XpQaa7JrmT3KVUP9zCnvzPdCSJnwANgGyjsEm0rc/GIMbmjUYqZC4Hj+bZrmd92tx4j Cy/UTqhBl1eK+Ys+eZWGIygQRTknwyoRZJ25sKfJ4t62pezcmS/bzOJtXI5m3h3cD7SW 7tOQ== X-Gm-Message-State: ALoCoQns9NmDIEjB9QhlaFNzm2i/klsx/SFHdT/4X5hQIMb5WPK1/XvV0mTK7KeXulVgLSJPZieF MIME-Version: 1.0 X-Received: by 10.140.102.9 with SMTP id v9mr32870360qge.38.1412654670712; Mon, 06 Oct 2014 21:04:30 -0700 (PDT) Received: by 10.96.26.227 with HTTP; Mon, 6 Oct 2014 21:04:30 -0700 (PDT) Date: Mon, 6 Oct 2014 23:04:30 -0500 Message-ID: Subject: Failed to run multi-thread using pkt-gen From: Yue Zhuo To: net@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2014 04:04:37 -0000 Hi there, I was testing the newest netmap on a dual-port x520-T2 adapter using a 6-core machine. However, I always get error in* nm_txsync_prologue *for n - 1 threads when I try to use n threads (n > 1), which indicates the cur pointer points to a wrong place. At last, only one thread works correctly. Here is how I send packets: ./pkt-gen -i ix0 -f tx -c 6 -p 6 Any ideas about the issue? Thanks, Yue