From owner-freebsd-net@FreeBSD.ORG Thu Sep 4 11:58:42 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 C0652740 for ; Thu, 4 Sep 2014 11:58:42 +0000 (UTC) Received: from mx11.netapp.com (mx11.netapp.com [216.240.18.76]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "mx11.netapp.com", Issuer "VeriSign Class 3 International Server CA - G3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9E4D81C63 for ; Thu, 4 Sep 2014 11:58:42 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.04,465,1406617200"; d="asc'?scan'208";a="144252613" Received: from hioexcmbx06-prd.hq.netapp.com ([10.122.105.39]) by mx11-out.netapp.com with ESMTP; 04 Sep 2014 04:58:42 -0700 Received: from HIOEXCMBX07-PRD.hq.netapp.com (10.122.105.40) by hioexcmbx06-prd.hq.netapp.com (10.122.105.39) with Microsoft SMTP Server (TLS) id 15.0.913.22; Thu, 4 Sep 2014 04:58:30 -0700 Received: from HIOEXCMBX07-PRD.hq.netapp.com ([::1]) by hioexcmbx07-prd.hq.netapp.com ([fe80::55e3:a7dc:11bd:462%21]) with mapi id 15.00.0913.011; Thu, 4 Sep 2014 04:58:29 -0700 From: "Eggert, Lars" To: Luigi Rizzo Subject: netmap extra rings and buffers Thread-Topic: netmap extra rings and buffers Thread-Index: AQHPyDeKjIx8ly78NE+bckXSokPnmQ== Date: Thu, 4 Sep 2014 11:58:28 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-mailer: Apple Mail (2.1878.6) x-originating-ip: [10.122.56.79] Content-Type: multipart/signed; boundary="Apple-Mail=_41B777AC-9BB5-4A01-84E0-F6B1687C916B"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 Cc: "net@freebsd.org" 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: Thu, 04 Sep 2014 11:58:42 -0000 --Apple-Mail=_41B777AC-9BB5-4A01-84E0-F6B1687C916B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Luigi, I'm allocating extra rings and/or extra buffers via the nr_arg1/nr_arg3 = parameters for NIOCREGIF. Once I've done that, how do I actually access those rings and buffers? For extra rings, the documentation and example code don't really say = anything. For extra buffers, the documentation says "nifp->ni_bufs_head will be = the index of the first buffer" but doesn't really explain how I can find = the buffer given its index (since it's not in a ring, the NETMAP_BUF = macro doesn't seem to apply?) The part about "buffers are linked to each = other using the first uint32_t as the index" is also unclear to me. Do you have some more text or example code that shows how to use extra = rings and buffers? Thanks, Lars --Apple-Mail=_41B777AC-9BB5-4A01-84E0-F6B1687C916B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQCVAwUBVAhT59ZcnpRveo1xAQIDwQP/cMBawktTBJKscUqjacndH/NTcG5aCMvf Q/l6qS/j2jKRPa3/JEfVf3lNfCsFgV/SYODH2UwH5Qa+Kio7Uw2QmODmCDW5taxm ObKKZgw9s7afEBBh59NYbe1/Fq+ny+14TcXKLz2GXAAmJZoUTxXFoYHweb7XMFKj R/+ewxVgSpc= =RiNX -----END PGP SIGNATURE----- --Apple-Mail=_41B777AC-9BB5-4A01-84E0-F6B1687C916B--