From owner-freebsd-current@FreeBSD.ORG Tue Apr 24 07:27:44 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 63806106566B for ; Tue, 24 Apr 2012 07:27:44 +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 251818FC0A for ; Tue, 24 Apr 2012 07:27:44 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 1E5F17300A; Tue, 24 Apr 2012 09:47:22 +0200 (CEST) Date: Tue, 24 Apr 2012 09:47:22 +0200 From: rizzo To: "root@9du.org" Message-ID: <20120424074722.GA56331@onelab2.iet.unipi.it> References: <201204232016029060073@9du.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201204232016029060073@9du.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current Subject: Re: about /sys/dev/netmap/head.diff 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, 24 Apr 2012 07:27:44 -0000 On Mon, Apr 23, 2012 at 08:17:40PM +0800, root@9du.org wrote: > i think this "head.diff" may be is old! it is, definitely time to remove it since the code has been merged. cheers luigi > > in diff > +#ifdef DEV_NETMAP > + if (slot) { > + netmap_load_map(txr->txtag, txbuf->map, > + NMB(slot), adapter->rx_mbuf_sz); > + slot++; > + } > +#endif /* DEV_NETMAP */ > > in netmap_kern.h > > static inline void > netmap_load_map(bus_dma_tag_t tag, bus_dmamap_t map, void *buf) > { > if (map) > bus_dmamap_load(tag, map, buf, NETMAP_BUF_SIZE, > netmap_dmamap_cb, NULL, BUS_DMA_NOWAIT); > } > > > > > yong > root@9du.org