From owner-freebsd-net@FreeBSD.ORG Wed Mar 19 11:53:45 2014 Return-Path: Delivered-To: freebsd-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 0A62136F for ; Wed, 19 Mar 2014 11:53:45 +0000 (UTC) Received: from mail-lb0-x235.google.com (mail-lb0-x235.google.com [IPv6:2a00:1450:4010:c04::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 863F4B8F for ; Wed, 19 Mar 2014 11:53:44 +0000 (UTC) Received: by mail-lb0-f181.google.com with SMTP id c11so5675291lbj.26 for ; Wed, 19 Mar 2014 04:53:42 -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=jNS152ntnu5B1fMM7LS0Q644f9OOTUcKR2nf/sjdHsw=; b=sI7BOkfgdN8MKk4ccmkxSBqqHPcmFl1WRAUUMxlNVv+1NtvfP+xVXaiUwGNBFuv1iB qM7QDwABx8mx/FeXF8S9Ax6APNiGKQ7gE01wcuxIJk9jupG6DIui7BIeKM7gSJdi0kc2 AiBCEDe3W9iAeE0kAjeifTiZUYbGUtcgTY57h1m0tA4jKi9ufXqdsWM5Frk7rkWOKaov UEAaK2V7WvmOhDVQW0q9+oDK57JpXjYNypD5mQX01L1C5+hs8r1fB5ADIZCVdjoliIY3 bh7DavUyF325Y+QosYCoi4stqPcAALf/RcmZqjzw9e7BjFi9SIuDUwjxTq7jPFs3/qCH FZjw== MIME-Version: 1.0 X-Received: by 10.112.150.233 with SMTP id ul9mr24394900lbb.2.1395230022090; Wed, 19 Mar 2014 04:53:42 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.200.107 with HTTP; Wed, 19 Mar 2014 04:53:42 -0700 (PDT) In-Reply-To: <20140319111638.94222.qmail@f5-external.bushwire.net> References: <20140319111638.94222.qmail@f5-external.bushwire.net> Date: Wed, 19 Mar 2014 12:53:42 +0100 X-Google-Sender-Auth: l_PNE_V6Ns3JXLKbeWFSiTJXFDA Message-ID: Subject: Re: Minor nits with netmap(4) manpage From: Luigi Rizzo To: Mark Delany 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: Wed, 19 Mar 2014 11:53:45 -0000 thanks for the suggestions we'll integrate them cheers luigi On Wed, Mar 19, 2014 at 12:16 PM, Mark Delany wrote: > (Luigi's page suggests posting here.) > > Very recent freebsd10 (r263256) > > 1) the manpage says "SEE TRANSPARENT MODE" but no such section > exists. > > 2) the manpage refers to NR_RING_NIC_SW when I think it means > NR_REG_NIC_SW. > > 3) No mention is made of access control. I think earlier documentation > suggested that you had to run as root, but now it appears to work > for any user that has rw access to /dev/netmap. Obvious I guess but > just mentioning that access is controlled by the file system, not > your uid. > > 4) epoll/kqueue has conflicting information. An early para says > "... and standard OS mechanisms such as select(2), poll(2), > epoll(2), kqueue(2)." > > But a later para says "epoll(2) and kqueue(2) are not supported on > netmap file descriptors.". > > > On the matter of transparent mode, it seems that all an application > has to do to have a packet proceed up into the host stack is set > NS_FORWARD in the ring flags. That's a super-nice feature as is netmap > in general. > > > Mark. > _______________________________________________ > 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" > -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2211611 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+-------------------------------