From owner-freebsd-net@FreeBSD.ORG Wed Jun 5 14:28:01 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 75929779; Wed, 5 Jun 2013 14:28:01 +0000 (UTC) (envelope-from caesarxuchao@gmail.com) Received: from mail-qe0-f50.google.com (mail-qe0-f50.google.com [209.85.128.50]) by mx1.freebsd.org (Postfix) with ESMTP id 2AF871C5B; Wed, 5 Jun 2013 14:28:00 +0000 (UTC) Received: by mail-qe0-f50.google.com with SMTP id f6so1087609qej.9 for ; Wed, 05 Jun 2013 07:28:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=IycN04NcdV+ooxmCgRN72yzWIaEKXlhF7aGtTwkIIDQ=; b=M9LSytlhAYGWw/5Eu1ShX1UFDW1btbP7/9hsSdCsbj4Aq6mqmfrIVGzumtOl0o4p9q vKHgrzOtjBq2W2xUA8JwbCkdcT/1jlhn/jqVA9EgUt5Xsghj8AAZiToGRP5ONCfwJLbc yKVReqWGc5m2oO1IqAWIKx7k4Z/k0Cl/r6hGotii+F8hq7nnNnzkOPVtWgST0oHczgYP IuK7+T+XFqoXdBpZ/73sKE+eaDPLvlU1KhNUjEKqCRgKYjkAZ7Z3wRMXro+Rw2UEhMo2 JqPu1+J34dGNvEd9ZvolQWcYHy+xXAGo1QNqnOUcHj20y3ILNkUrcbP4X7oqXbSllobu 3yug== MIME-Version: 1.0 X-Received: by 10.49.28.129 with SMTP id b1mr33327183qeh.62.1370442480131; Wed, 05 Jun 2013 07:28:00 -0700 (PDT) Received: by 10.224.61.75 with HTTP; Wed, 5 Jun 2013 07:28:00 -0700 (PDT) In-Reply-To: <20130605134507.GB38081@onelab2.iet.unipi.it> References: <20130605134507.GB38081@onelab2.iet.unipi.it> Date: Wed, 5 Jun 2013 09:28:00 -0500 Message-ID: Subject: Re: netmap on wireless NIC From: Chao Xu To: Luigi Rizzo , adrian@freebsd.org, freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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, 05 Jun 2013 14:28:01 -0000 Thank you Adrian and Luigi. My goal is to reduce the latency, i.e. get the packet as soon as it arrives on the NIC, and send the packet from user space to NIC quickly. I think netmap will help because it skips the socket layer and kernel network stack. On Wed, Jun 5, 2013 at 8:45 AM, Luigi Rizzo wrote: > On Tue, Jun 04, 2013 at 04:06:35PM -0500, Chao Xu wrote: > > Hello, > > > > Is it possible to hacking some wireless NIC driver (carl9170 for example) > > to enable netmap on it? I guess this is possible because wireless drivers > > also manage packets using ring buffers. My goal is to access the raw > > packets as quickly as possible, not to achieve high data rate. Is there > any > > argument against doing so? Thank you. > > as other said, there is no negative argument but it does not > seem worthwhile, because at least with current packet rates > you should be able to extract packets using pcap. > Unless, of course, you are running a 300Mbit/s interface > on a slow embedded CPU, in which case the efficiency of > netmap might be helpful. > > cheers > luigi > -- Regards, Chao Xu