From owner-freebsd-current@FreeBSD.ORG Tue Jun 7 05:58:11 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30C1A106566B for ; Tue, 7 Jun 2011 05:58:11 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id EFDEB8FC08 for ; Tue, 7 Jun 2011 05:58:10 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id E3EBB7300A; Tue, 7 Jun 2011 08:14:17 +0200 (CEST) Date: Tue, 7 Jun 2011 08:14:17 +0200 From: Luigi Rizzo To: current@freebsd.org Message-ID: <20110607061417.GA5483@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: RFC: need one IFCAP bit for NETMAP X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2011 05:58:11 -0000 hi, in order to import netmap support into the tree (see http://info.iet.unipi.it/~luigi/netmap ), i need to use one of the if_cap{abilities|enable} bits to report that the interface supports this mode and record whether the mode is enabled or not. Bit 0x100000 is currently the first unused bit so if there are no objections i will add the following to sys/net/if.h #define IFCAP_NETMAP 0x100000 /* netmap mode supported/enabled */ and the following change to sbin/ifconfig/ifconfig.c -"\21VLAN_HWFILTER\23VLAN_HWTSO\24LINKSTATE" +"\21VLAN_HWFILTER\23VLAN_HWTSO\24LINKSTATE\25NETMAP" That's all you need, as netmap mode is not supposed to be set from sbin/ifconfig. cheers luigi