From owner-freebsd-net@FreeBSD.ORG Thu Mar 20 11:36:16 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6E7D81D8 for ; Thu, 20 Mar 2014 11:36:16 +0000 (UTC) Received: from mail-la0-x236.google.com (mail-la0-x236.google.com [IPv6:2a00:1450:4010:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E9DA97C5 for ; Thu, 20 Mar 2014 11:36:15 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id mc6so485019lab.41 for ; Thu, 20 Mar 2014 04:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=AGiE4Q+VhPUzSeagXuXk5L/yb+5r/9NsI5nheBLNnuU=; b=YkVYQJU0B70EQoN7IIyNYdfEBzAvNU2XRMCvLGPf4v2ohK3SneXs9DIPJp+IUpGMc7 Q0jIIj1uEmLtFez9vG++Bx1bWlE9tgo6saudl7Jr6S1mz7P5tfsF83u4vJ7RagudJXOP L4ZDH7tK8lf358WpWUEG5CNErDpGQgxGWt1c6InSdenqv4FqqgdkdQhvCOppuIq4KUK6 QXxaAcpGE2WR2lXGLf9HBdIjOvsCFOOXyHsPwypN7/Q6nJTwOsQoOldS8zL5V+uQwj4P xqlcpM0HMOqI1pT35e1VQMTwsU4Ik86fJAIVsvSSUIj5sm1GQD72xRMBdfr9i61Wtd3N pJIw== MIME-Version: 1.0 X-Received: by 10.112.147.36 with SMTP id th4mr13896099lbb.32.1395315374025; Thu, 20 Mar 2014 04:36:14 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.200.107 with HTTP; Thu, 20 Mar 2014 04:36:13 -0700 (PDT) In-Reply-To: <59d70d80.2b3cc.144def24445.Coremail.mstian88@163.com> References: <59d70d80.2b3cc.144def24445.Coremail.mstian88@163.com> Date: Thu, 20 Mar 2014 12:36:13 +0100 X-Google-Sender-Auth: -lIAxOBeTJJhozELtraAP7puMow Message-ID: Subject: Re: some problem about netmap From: Luigi Rizzo To: mstian88 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2014 11:36:16 -0000 what os, device driver ? are you using emulated or native netmap mode ? Do you have tso and receive side coalescing enabled ? (you can disable them with ethtool). cheers luigi On Thu, Mar 20, 2014 at 11:03 AM, mstian88 wrote: > ./pkt-gen -i eth1 -f rx -X > the print info shows slot->len is 2048? why? > the packets was sended with tcpreplay. > when Multiple packets len is 1514, pkt-gen receive avial >1, the > slot->len is 2048 > > > like this: > > [2213]:slotlen[1514],curidx[189],bufidx[24767],avail[3],iwhile[475],ifor[16],buf_ofs[5603328],rings[32] > > [2214]:slotlen[2048],curidx[190],bufidx[24768],avail[2],iwhile[475],ifor[16],buf_ofs[5603328],rings[32] > > [2215]:slotlen[926],curidx[191],bufidx[24769],avail[1],iwhile[475],ifor[16],buf_ofs[5603328],rings[32] > > [2216]:slotlen[1514],curidx[192],bufidx[24770],avail[1],iwhile[476],ifor[16],buf_ofs[5603328],rings[32] > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > ----