Date: Mon, 5 Dec 2011 19:38:54 +0100 From: Marius Strobl <marius@alchemy.franken.de> To: Luigi Rizzo <luigi@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r228281 - in head/sys/dev: e1000 re Message-ID: <20111205183854.GC54475@alchemy.franken.de> In-Reply-To: <201112051533.pB5FXEuh043063@svn.freebsd.org> References: <201112051533.pB5FXEuh043063@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 05, 2011 at 03:33:14PM +0000, Luigi Rizzo wrote: > Author: luigi > Date: Mon Dec 5 15:33:13 2011 > New Revision: 228281 > URL: http://svn.freebsd.org/changeset/base/228281 > > Log: > add netmap support for "em", "lem", "igb" and "re". > > On my hardware, "em" in netmap mode does about 1.388 Mpps > on one card (on an Asus motherboard), and 1.1 Mpps on another > card (PCIe bus). Both seem to be NIC-limited, because > i have the same rate even with the CPU running at 150 MHz. > > On the "re" driver the tx throughput is around 420-450 Kpps > on various (8111C and the like) chipsets. On the Rx side > performance seems much better, and i can receive the full > load generated by the "em" cards. > > "igb" is untested as i don't have the hardware. > <...> > +#ifdef DEV_NETMAP > + if (slot) { > + int si = i + na->tx_rings[txr->me].nkr_hwofs; > + void *addr; > + > + if (si >= na->num_tx_desc) > + si -= na->num_tx_desc; > + addr = NMB(slot + si); > + txr->tx_base[i].buffer_addr = > + htole64(vtophys(addr)); > + /* reload the map for netmap mode */ > + netmap_load_map(txr->txtag, > + txbuf->map, addr, na->buff_size); > + } > +#endif /* DEV_NETMAP */ Can these vtophys(9) usages be fixed to use bus_dma(9) instead so netmap works with bounce buffers, IOMMUs etc? Marius
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111205183854.GC54475>