Re: svn commit: r228281 - in head/sys/dev: e1000 re

2011-12-08 Thread John Baldwin
On 12/8/11 1:29 PM, Luigi Rizzo wrote: On Thu, Dec 08, 2011 at 12:49:18PM -0500, John Baldwin wrote: On 12/5/11 2:31 PM, Luigi Rizzo wrote: On Mon, Dec 05, 2011 at 07:38:54PM +0100, Marius Strobl wrote: On Mon, Dec 05, 2011 at 03:33:14PM +, Luigi Rizzo wrote: ... +#ifdef DEV_NETMAP +

Re: svn commit: r228281 - in head/sys/dev: e1000 re

2011-12-08 Thread Luigi Rizzo
On Thu, Dec 08, 2011 at 12:49:18PM -0500, John Baldwin wrote: > On 12/5/11 2:31 PM, Luigi Rizzo wrote: > >On Mon, Dec 05, 2011 at 07:38:54PM +0100, Marius Strobl wrote: > >>On Mon, Dec 05, 2011 at 03:33:14PM +, Luigi Rizzo wrote: > >... > >>>+#ifdef DEV_NETMAP > >>>+ if (slot) { > >>>+

Re: svn commit: r228281 - in head/sys/dev: e1000 re

2011-12-08 Thread John Baldwin
On 12/5/11 2:31 PM, Luigi Rizzo wrote: On Mon, Dec 05, 2011 at 07:38:54PM +0100, Marius Strobl wrote: On Mon, Dec 05, 2011 at 03:33:14PM +, Luigi Rizzo wrote: ... +#ifdef DEV_NETMAP + if (slot) { + int si = i + na->tx_rings[txr->me].nkr_hwofs; +

Re: svn commit: r228281 - in head/sys/dev: e1000 re

2011-12-05 Thread Marius Strobl
On Mon, Dec 05, 2011 at 08:31:50PM +0100, Luigi Rizzo wrote: > On Mon, Dec 05, 2011 at 07:38:54PM +0100, Marius Strobl wrote: > > On Mon, Dec 05, 2011 at 03:33:14PM +, Luigi Rizzo wrote: > ... > > > +#ifdef DEV_NETMAP > > > + if (slot) { > > > + int si = i + na->tx_rings

Re: svn commit: r228281 - in head/sys/dev: e1000 re

2011-12-05 Thread Luigi Rizzo
On Mon, Dec 05, 2011 at 07:38:54PM +0100, Marius Strobl wrote: > On Mon, Dec 05, 2011 at 03:33:14PM +, Luigi Rizzo wrote: ... > > +#ifdef DEV_NETMAP > > + if (slot) { > > + int si = i + na->tx_rings[txr->me].nkr_hwofs; > > + void *addr; > > + > > +

Re: svn commit: r228281 - in head/sys/dev: e1000 re

2011-12-05 Thread Marius Strobl
On Mon, Dec 05, 2011 at 03:33:14PM +, 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 doe

svn commit: r228281 - in head/sys/dev: e1000 re

2011-12-05 Thread Luigi Rizzo
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 anot