Date: Tue, 7 Jun 2011 08:14:17 +0200 From: Luigi Rizzo <rizzo@iet.unipi.it> To: current@freebsd.org Subject: RFC: need one IFCAP bit for NETMAP Message-ID: <20110607061417.GA5483@onelab2.iet.unipi.it>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110607061417.GA5483>