From owner-freebsd-net@FreeBSD.ORG Wed Oct 17 16:50:05 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DAD3154C for ; Wed, 17 Oct 2012 16:50:05 +0000 (UTC) (envelope-from ming.fu@netsweeper.com) Received: from mail.netsweeper.com (mail.netsweeper.com [216.171.98.87]) by mx1.freebsd.org (Postfix) with ESMTP id A81658FC0C for ; Wed, 17 Oct 2012 16:50:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netsweeper.com (Postfix) with ESMTP id 8EC8F1E410FB for ; Wed, 17 Oct 2012 12:41:45 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail.netsweeper.com Received: from mail.netsweeper.com ([127.0.0.1]) by localhost (mail.netsweeper.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YEur7bOfJTI7 for ; Wed, 17 Oct 2012 12:41:45 -0400 (EDT) Received: from [192.168.4.202] (unknown [216.171.98.93]) by mail.netsweeper.com (Postfix) with ESMTPSA id 66A661E410A6 for ; Wed, 17 Oct 2012 12:41:45 -0400 (EDT) Message-ID: <507EDFCE.3060702@netsweeper.com> Date: Wed, 17 Oct 2012 12:41:50 -0400 From: Ming Fu User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: netmap NETMAP_SW_RING or NETMAP_HW_RING Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2012 16:50:05 -0000 Hi, What is the difference between NETMAP_SW_RING and NETMAP_HW_RING. When using netmap_open() in the example code to create a netmap fdesc, one of these two need to be ORed to the queue ID, in order to bind only one RX queue. netmap code updated from FreeBSD RELENG_9. Regards, Ming