From owner-svn-src-head@FreeBSD.ORG Wed Nov 6 21:42:58 2013 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 ESMTP id BD47BF33; Wed, 6 Nov 2013 21:42:58 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AB1F720E6; Wed, 6 Nov 2013 21:42:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rA6LgwS2057710; Wed, 6 Nov 2013 21:42:58 GMT (envelope-from luigi@svn.freebsd.org) Received: (from luigi@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rA6Lgwuj057709; Wed, 6 Nov 2013 21:42:58 GMT (envelope-from luigi@svn.freebsd.org) Message-Id: <201311062142.rA6Lgwuj057709@svn.freebsd.org> From: Luigi Rizzo Date: Wed, 6 Nov 2013 21:42:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r257765 - head/share/man/man4 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 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, 06 Nov 2013 21:42:58 -0000 Author: luigi Date: Wed Nov 6 21:42:58 2013 New Revision: 257765 URL: http://svnweb.freebsd.org/changeset/base/257765 Log: the number of slots used by a packet is NS_RFRAGS() not ns_cnt Modified: head/share/man/man4/netmap.4 Modified: head/share/man/man4/netmap.4 ============================================================================== --- head/share/man/man4/netmap.4 Wed Nov 6 21:00:18 2013 (r257764) +++ head/share/man/man4/netmap.4 Wed Nov 6 21:42:58 2013 (r257765) @@ -346,13 +346,12 @@ indicates that the packet continues with the last buffer in a packet must have the flag clear. The maximum length of a chain is 64 buffers. .Em This is only supported on virtual ports -.It ns_ctr -on receive rings, contains the number of remaining buffers +.It NS_RFRAGS(slot) +on receive rings, returns the number of remaining buffers in a packet, including this one. Slots with a value greater than 1 also have NS_MOREFRAG set. The length refers to the individual buffer, there is no -field for the total length -XXX maybe put it in the ptr field ? +field for the total length. .Pp On transmit rings, if NS_DST is set, it is passed to the lookup function, which can use it e.g. as the index of the destination