From owner-freebsd-net@FreeBSD.ORG Tue Oct 7 15:29:35 2014 Return-Path: Delivered-To: freebsd-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 03B5CE1D for ; Tue, 7 Oct 2014 15:29:35 +0000 (UTC) Received: from mail-qg0-f45.google.com (mail-qg0-f45.google.com [209.85.192.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 BA2876B for ; Tue, 7 Oct 2014 15:29:34 +0000 (UTC) Received: by mail-qg0-f45.google.com with SMTP id q107so1991677qgd.4 for ; Tue, 07 Oct 2014 08:29:27 -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=wgWuK9wXSdsUReKr/EL1o6TGqTvhx0Z3Wob6pHcQ6JE=; b=klcTNBVq6G/wVDv6Vk/dEDLGMKwAJH9x6LXANbZJr4BLJ1pxTFB9PybS7pkcwPenhh gPJ8wNSsEPbRsn09aSz/2ioqgGUVAVsK6rxHgYhQAXu/CTAxG1hqjDKRqH+rYgn5cqeh jpBxKiHG2iVV+J7DrEbpdAU6QfMPsxaptmdo9aU+4wRp2k3VZ7xr42t8Eu3fehiifgv6 mOGC6oHPuy5cTZL/okaLvMlJtGZVsjAvdoZgnJ2s1TiO5GY63kxC34tmVcIU4a0sBQp5 CNsAxC03EL+PBYlcPbYRwFXGkJEVTEzbqV2878iXAZ2b1iTRfvSBtJ0sSWW5lqIPGR3U 88pg== X-Gm-Message-State: ALoCoQlzjZVHMSAPmZAe/af2hgTaQx9JIKzAMLWR8sMWYqOa9qFKMhsL+145exAxOs7aVPSBVN36 MIME-Version: 1.0 X-Received: by 10.224.172.198 with SMTP id m6mr5305789qaz.19.1412695767141; Tue, 07 Oct 2014 08:29:27 -0700 (PDT) Received: by 10.96.26.227 with HTTP; Tue, 7 Oct 2014 08:29:27 -0700 (PDT) Date: Tue, 7 Oct 2014 10:29:27 -0500 Message-ID: Subject: Netmap: Failed to run multi-thread using pkt-gen From: Yue Zhuo To: freebsd-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 15:29:35 -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