From owner-svn-src-head@FreeBSD.ORG Wed May 28 10:18:28 2014 Return-Path: Delivered-To: svn-src-head@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 ESMTPS id 6A461D08; Wed, 28 May 2014 10:18:28 +0000 (UTC) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EF89D2511; Wed, 28 May 2014 10:18:27 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 25D8025D388C; Wed, 28 May 2014 10:18:24 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 333ACC22BE8; Wed, 28 May 2014 10:18:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id DYM13uLrg_CF; Wed, 28 May 2014 10:18:21 +0000 (UTC) Received: from [IPv6:fde9:577b:c1a9:4420:cabc:c8ff:fe8b:4fe6] (unknown [IPv6:fde9:577b:c1a9:4420:cabc:c8ff:fe8b:4fe6]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id A7960C22BD5; Wed, 28 May 2014 10:18:19 +0000 (UTC) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: svn commit: r266757 - in head/sys: conf dev/cxgbe dev/cxgbe/common modules/cxgbe/if_cxgbe From: "Bjoern A. Zeeb" In-Reply-To: <201405271818.s4RIIff9045225@svn.freebsd.org> Date: Wed, 28 May 2014 10:18:16 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201405271818.s4RIIff9045225@svn.freebsd.org> To: Navdeep Parhar X-Mailer: Apple Mail (2.1878.2) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2014 10:18:28 -0000 On 27 May 2014, at 18:18 , Navdeep Parhar wrote: > Author: np > Date: Tue May 27 18:18:41 2014 > New Revision: 266757 > URL: http://svnweb.freebsd.org/changeset/base/266757 >=20 > Log: > cxgbe(4): netmap support for Terminator 5 (T5) based 10G/40G cards. > Netmap gets its own hardware-assisted virtual interface and won't = take > over or disrupt the "normal" interface in any way. You can use both > simultaneously. >=20 > For kernels with DEV_NETMAP, cxgbe(4) carves out an ncxl interface > (note the 'n' prefix) in the hardware to accompany each cxl > interface. These two ifnet's per port share the same wire but really > are separate interfaces in the hardware and software. Each gets its = own > L2 MAC addresses (unicast and multicast), MTU, checksum caps, etc. = You > should run netmap on the 'n' interfaces only, that's what they are = for. >=20 > With this, pkt-gen is able to transmit > 45Mpps out of a single 40G = port > of a T580 card. 2 port tx is at ~56Mpps total (28M + 28M) as of now. > Single port receive is at 33Mpps but this is very much a work in > progress. I expect it to be closer to 40Mpps once done. In any case > the current effort can already saturate multiple 10G ports of a T5 = card > at the smallest legal packet size. T4 gear is totally untested. >=20 > trantor:~# ./pkt-gen -i ncxl0 -f tx -D 00:07:43:ab:cd:ef > 881.952141 main [1621] interface is ncxl0 > 881.952250 extract_ip_range [275] range is 10.0.0.1:0 to 10.0.0.1:0 > 881.952253 extract_ip_range [275] range is 10.1.0.1:0 to 10.1.0.1:0 > 881.962540 main [1804] mapped 334980KB at 0x801dff000 > Sending on netmap:ncxl0: 4 queues, 1 threads and 1 cpus. > 10.0.0.1 -> 10.1.0.1 (00:00:00:00:00:00 -> 00:07:43:ab:cd:ef) > 881.962562 main [1882] Sending 512 packets every 0.000000000 s > 881.962563 main [1884] Wait 2 secs for phy reset > 884.088516 main [1886] Ready... > 884.088535 nm_open [457] overriding ifname ncxl0 ringid 0x0 flags 0x1 > 884.088607 sender_body [996] start > 884.093246 sender_body [1064] drop copy > 885.090435 main_thread [1418] 45206353 pps (45289533 pkts in 1001840 = usec) > 886.091600 main_thread [1418] 45322792 pps (45375593 pkts in 1001165 = usec) > 887.092435 main_thread [1418] 45313992 pps (45351784 pkts in 1000834 = usec) > 888.094434 main_thread [1418] 45315765 pps (45406397 pkts in 1002000 = usec) > 889.095434 main_thread [1418] 45333218 pps (45378551 pkts in 1001000 = usec) > 890.097434 main_thread [1418] 45315247 pps (45405877 pkts in 1002000 = usec) > 891.099434 main_thread [1418] 45326515 pps (45417168 pkts in 1002000 = usec) > 892.101434 main_thread [1418] 45333039 pps (45423705 pkts in 1002000 = usec) > 893.103434 main_thread [1418] 45324105 pps (45414708 pkts in 1001999 = usec) > 894.105434 main_thread [1418] 45318042 pps (45408723 pkts in 1002001 = usec) > 895.106434 main_thread [1418] 45332430 pps (45377762 pkts in 1001000 = usec) > 896.107434 main_thread [1418] 45338072 pps (45383410 pkts in 1001000 = usec) > ... >=20 > Relnotes: Yes > Sponsored by: Chelsio Communications. Really nice :-) Thanks a lot for getting it into the tree. =97=20 Bjoern A. Zeeb "Come on. Learn, goddamn it.", WarGames, 1983