svn commit: r250054 - head/sys/dev/netmap

2013-04-29 Thread Luigi Rizzo
Author: luigi Date: Mon Apr 29 19:30:35 2013 New Revision: 250054 URL: http://svnweb.freebsd.org/changeset/base/250054 Log: whitespace - document alternative locking under linux Modified: head/sys/dev/netmap/netmap_mem2.c Modified: head/sys/dev/netmap/netmap_mem2.c

svn commit: r249659 - head/sys/dev/netmap

2013-04-19 Thread Luigi Rizzo
Apr 19 21:08:21 2013 (r249659) @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2012 Matteo Landi, Luigi Rizzo. All rights reserved. + * Copyright (C) 2011-2013 Matteo Landi, Luigi Rizzo. All rights reserved. * * Redistribution and use in source and binary forms, with or without

svn commit: r249504 - head/sys/dev/netmap

2013-04-15 Thread Luigi Rizzo
Author: luigi Date: Mon Apr 15 11:49:16 2013 New Revision: 249504 URL: http://svnweb.freebsd.org/changeset/base/249504 Log: fix a bug in the computation of the userspace offset for a give netmap buffer. Submitted by: Hugh Nhan Modified: head/sys/dev/netmap/netmap_mem2.c Modified:

Re: svn commit: r247792 - head/sys/dev/syscons

2013-03-04 Thread Luigi Rizzo
On Mon, Mar 04, 2013 at 02:00:59PM +, Davide Italiano wrote: Author: davide Date: Mon Mar 4 14:00:58 2013 New Revision: 247792 URL: http://svnweb.freebsd.org/changeset/base/247792 Log: MFcalloutng (r244249, r244306 by mav): - Switch syscons from timeout() to callout_reset_flags()

Re: svn commit: r247792 - head/sys/dev/syscons

2013-03-04 Thread Luigi Rizzo
On Mon, Mar 04, 2013 at 04:55:49PM +0200, Alexander Motin wrote: On 04.03.2013 16:42, Luigi Rizzo wrote: On Mon, Mar 04, 2013 at 02:00:59PM +, Davide Italiano wrote: ... - Reduce syscons refresh rate to 1-2Hz when console is in graphics mode and there is nothing to do except some

svn commit: r247230 - in stable/9/sys: dev/netmap net

2013-02-24 Thread Luigi Rizzo
Author: luigi Date: Sun Feb 24 18:26:17 2013 New Revision: 247230 URL: http://svnweb.freebsd.org/changeset/base/247230 Log: MFC some flags and minor things related to transparent mode that i forgot in previous commits. Modified: stable/9/sys/dev/netmap/ixgbe_netmap.h

svn commit: r246932 - in head/release/picobsd: bridge qemu

2013-02-17 Thread Luigi Rizzo
Author: luigi Date: Mon Feb 18 02:08:41 2013 New Revision: 246932 URL: http://svnweb.freebsd.org/changeset/base/246932 Log: the NO_PAM option has been finally removed in favor of WITHOUT_PAM. Modified: head/release/picobsd/bridge/crunch.conf head/release/picobsd/qemu/crunch.conf Modified:

svn commit: r246885 - in stable/9/sys: amd64/conf conf i386/conf

2013-02-16 Thread Luigi Rizzo
Author: luigi Date: Sat Feb 16 22:44:02 2013 New Revision: 246885 URL: http://svnweb.freebsd.org/changeset/base/246885 Log: partial MFC of rev=245362: enable building virtio devices into static kernels. I think the 'files.*' entries should be improved (also in HEAD) because bringing up

svn commit: r246896 - head/tools/tools/netmap

2013-02-16 Thread Luigi Rizzo
1970 (empty, because file is newly added) +++ head/tools/tools/netmap/nm_util.c Sun Feb 17 04:43:22 2013 (r246896) @@ -0,0 +1,251 @@ +/* + * Copyright (C) 2012 Luigi Rizzo. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification

svn commit: r246355 - in stable/9/sys: dev/netmap net

2013-02-05 Thread Luigi Rizzo
Feb 5 05:16:02 2013 (r246354) +++ stable/9/sys/dev/netmap/netmap.cTue Feb 5 09:40:31 2013 (r246355) @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Matteo Landi, Luigi Rizzo. All rights reserved. + * Copyright (C) 2011-2012 Matteo Landi, Luigi Rizzo. All rights reserved

svn commit: r245834 - head/sys/net

2013-01-22 Thread Luigi Rizzo
Author: luigi Date: Wed Jan 23 03:49:48 2013 New Revision: 245834 URL: http://svnweb.freebsd.org/changeset/base/245834 Log: leftover from r245579... flags for semi transparent mode and direct forwarding through a VALE switch Modified: head/sys/net/netmap.h Modified: head/sys/net/netmap.h

svn commit: r245835 - head/sys/dev/netmap

2013-01-22 Thread Luigi Rizzo
Author: luigi Date: Wed Jan 23 03:51:47 2013 New Revision: 245835 URL: http://svnweb.freebsd.org/changeset/base/245835 Log: control some debugging messages with dev.netmap.verbose add infrastracture to adapt to changes in number of queues and buffers at runtime Modified:

svn commit: r245836 - head/sys/dev/netmap

2013-01-22 Thread Luigi Rizzo
Author: luigi Date: Wed Jan 23 05:37:45 2013 New Revision: 245836 URL: http://svnweb.freebsd.org/changeset/base/245836 Log: Add support for transparent mode while in netmap. By setting dev.netmap.fwd=1 (or enabling the feature with a per-ring flag), packets are forwarded between the NIC

svn commit: r245570 - head/sys/dev/netmap

2013-01-17 Thread Luigi Rizzo
Author: luigi Date: Thu Jan 17 19:27:12 2013 New Revision: 245570 URL: http://svnweb.freebsd.org/changeset/base/245570 Log: remove an incorrect comment and debugging code Modified: head/sys/dev/netmap/ixgbe_netmap.h Modified: head/sys/dev/netmap/ixgbe_netmap.h

svn commit: r245579 - head/sys/dev/netmap

2013-01-17 Thread Luigi Rizzo
Author: luigi Date: Thu Jan 17 22:14:58 2013 New Revision: 245579 URL: http://svnweb.freebsd.org/changeset/base/245579 Log: add some definition and driver changes in preparation for two upcoming features: semi-transparent mode: when a device is opened in this mode, the user

svn commit: r245581 - head/sys/dev/netmap

2013-01-17 Thread Luigi Rizzo
Author: luigi Date: Thu Jan 17 23:14:17 2013 New Revision: 245581 URL: http://svnweb.freebsd.org/changeset/base/245581 Log: remove the old memory allocator, not useful anymore Deleted: head/sys/dev/netmap/netmap_mem1.c ___ svn-src-all@freebsd.org

svn commit: r244731 - head/tools/tools/netrate/netsend

2012-12-27 Thread Luigi Rizzo
Author: luigi Date: Thu Dec 27 09:15:21 2012 New Revision: 244731 URL: http://svnweb.freebsd.org/changeset/base/244731 Log: use nanosecond resolution, make sure gettimeofday is called at most every 100 packets. Modified: head/tools/tools/netrate/netsend/netsend.c Modified:

svn commit: r244672 - head/tools/tools/netrate/netreceive

2012-12-24 Thread Luigi Rizzo
Author: luigi Date: Tue Dec 25 07:29:25 2012 New Revision: 244672 URL: http://svnweb.freebsd.org/changeset/base/244672 Log: various connections to last commit Modified: head/tools/tools/netrate/netreceive/Makefile head/tools/tools/netrate/netreceive/netreceive.c Modified:

Re: svn commit: r244665 - head/sys/netinet

2012-12-24 Thread Luigi Rizzo
On Mon, Dec 24, 2012 at 09:35:49PM +, Gleb Smirnoff wrote: Author: glebius Date: Mon Dec 24 21:35:48 2012 New Revision: 244665 URL: http://svnweb.freebsd.org/changeset/base/244665 Log: Minor style(9) changes: - Remove declaration in initializer. i am really curious, what is the

svn commit: r244642 - head/release/picobsd/build

2012-12-23 Thread Luigi Rizzo
Author: luigi Date: Sun Dec 23 22:41:54 2012 New Revision: 244642 URL: http://svnweb.freebsd.org/changeset/base/244642 Log: enable building picobsd with CC instead of CLANG Modified: head/release/picobsd/build/picobsd Modified: head/release/picobsd/build/picobsd

svn commit: r244644 - head/tools/tools/netrate/netreceive

2012-12-23 Thread Luigi Rizzo
Author: luigi Date: Sun Dec 23 23:03:45 2012 New Revision: 244644 URL: http://svnweb.freebsd.org/changeset/base/244644 Log: small cleanup of the code, and add support for running multiple threads on each socket. Modified: head/tools/tools/netrate/netreceive/netreceive.c Modified:

svn commit: r244514 - in head/sys/dev: ixgbe netmap

2012-12-20 Thread Luigi Rizzo
Author: luigi Date: Thu Dec 20 22:26:03 2012 New Revision: 244514 URL: http://svnweb.freebsd.org/changeset/base/244514 Log: rename the 'tag' and 'map' fields used the rx ring to their previous names, 'ptag' and 'pmap' -- p stands for packet. This change reduces the difference between the

Re: svn commit: r241913 - in head: . sys/net sys/netgraph sys/netinet sys/netinet6 sys/netipsec sys/netpfil/ipfw sys/netpfil/pf sys/sys

2012-10-22 Thread Luigi Rizzo
On Mon, Oct 22, 2012 at 09:09:04PM +, Gleb Smirnoff wrote: Author: glebius Date: Mon Oct 22 21:09:03 2012 New Revision: 241913 URL: http://svn.freebsd.org/changeset/base/241913 Log: Switch the entire IPv4 stack to keep the IP packet header in network byte order. Any host byte

svn commit: r241719 - head/sys/dev/netmap

2012-10-18 Thread Luigi Rizzo
Oct 19 03:01:25 2012 (r241718) +++ head/sys/dev/netmap/netmap_kern.h Fri Oct 19 04:13:12 2012 (r241719) @@ -1,6 +1,6 @@ /* * Copyright (C) 2011-2012 Matteo Landi, Luigi Rizzo. All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without

svn commit: r239738 - head/release/picobsd/build

2012-08-27 Thread Luigi Rizzo
Author: luigi Date: Mon Aug 27 16:42:32 2012 New Revision: 239738 URL: http://svn.freebsd.org/changeset/base/239738 Log: use MALLOC_PRODUCTION for picobsd builds, be more frugal in memory usage. Modified: head/release/picobsd/build/picobsd Modified: head/release/picobsd/build/picobsd

svn commit: r239124 - in head/sys/netinet: . ipfw

2012-08-07 Thread Luigi Rizzo
Author: luigi Date: Tue Aug 7 07:52:25 2012 New Revision: 239124 URL: http://svn.freebsd.org/changeset/base/239124 Log: s/lenght/length/ in comments Modified: head/sys/netinet/ip_dummynet.h head/sys/netinet/ipfw/dummynet.txt Modified: head/sys/netinet/ip_dummynet.h

svn commit: r239092 - head/sys/netinet/ipfw

2012-08-06 Thread Luigi Rizzo
Author: luigi Date: Mon Aug 6 10:50:43 2012 New Revision: 239092 URL: http://svn.freebsd.org/changeset/base/239092 Log: use FREE_PKT instead of m_freem to free an mbuf. The former is the standard form used in ipfw/dummynet, so that it is easier to remap it to different memory managers

svn commit: r239093 - head/sys/netinet/ipfw

2012-08-06 Thread Luigi Rizzo
Author: luigi Date: Mon Aug 6 11:02:23 2012 New Revision: 239093 URL: http://svn.freebsd.org/changeset/base/239093 Log: move functions outside the SYSBEGIN/SYSEND block (SYSBEGIN/SYSEND are specific to ipfw/dummynet and are used to emulate sysctl on platforms that do not have them, and

svn commit: r239009 - head/sys/conf

2012-08-03 Thread Luigi Rizzo
Author: luigi Date: Fri Aug 3 14:00:26 2012 New Revision: 239009 URL: http://svn.freebsd.org/changeset/base/239009 Log: support building vtnet as an embedded driver Modified: head/sys/conf/files Modified: head/sys/conf/files

svn commit: r238982 - head/sys/dev/netmap

2012-08-02 Thread Luigi Rizzo
Author: luigi Date: Thu Aug 2 07:35:40 2012 New Revision: 238982 URL: http://svn.freebsd.org/changeset/base/238982 Log: Add a newline on an error message; rename linux functions to avoid confusion; fix error reporting on linux Modified: head/sys/dev/netmap/netmap.c Modified:

svn commit: r238983 - head/share/man/man4

2012-08-02 Thread Luigi Rizzo
@@ for (;;) { .Nm supports the following interfaces: .Xr em 4 , +.Xr igb 4 , .Xr ixgbe 4 , -.Xr re 4 , +.Xr lem 4 , +.Xr re 4 +.Sh SEE ALSO +.Xr vale 4 +.Pp +http://info.iet.unipi.it/~luigi/netmap/ +.Pp +Luigi Rizzo, Revisiting network I/O APIs: the netmap framework, +Communications of the ACM, 55 (3

svn commit: r238985 - head/sys/dev/netmap

2012-08-02 Thread Luigi Rizzo
Author: luigi Date: Thu Aug 2 11:59:43 2012 New Revision: 238985 URL: http://svn.freebsd.org/changeset/base/238985 Log: fix some signed/unsigned warnings in the netmap code. Unfortunately the original drivers still have a lot of sign conversion/comparison warnings. Modified:

svn commit: r238988 - head/sys/netinet/ipfw

2012-08-02 Thread Luigi Rizzo
Author: luigi Date: Thu Aug 2 12:45:13 2012 New Revision: 238988 URL: http://svn.freebsd.org/changeset/base/238988 Log: replace __unused with a portable construct; fix a couple of signed/unsigned warnings. Modified: head/sys/netinet/ipfw/ip_dummynet.c Modified:

svn commit: r238977 - head/sys/netinet/ipfw

2012-08-01 Thread Luigi Rizzo
Author: luigi Date: Wed Aug 1 18:49:00 2012 New Revision: 238977 URL: http://svn.freebsd.org/changeset/base/238977 Log: add a cast to avoid a signed/unsigned warning (to be removed when we will have TUNABLE_UINT constructors) Modified: head/sys/netinet/ipfw/ip_fw2.c Modified:

svn commit: r238978 - head/sys/netinet/ipfw

2012-08-01 Thread Luigi Rizzo
Author: luigi Date: Wed Aug 1 18:52:07 2012 New Revision: 238978 URL: http://svn.freebsd.org/changeset/base/238978 Log: replace inet_ntoa_r with the more standard inet_ntop(). As discussed on -current, inet_ntoa_r() is non standard, has different arguments in userspace and kernel, and

svn commit: r238941 - head/sys/netinet

2012-07-31 Thread Luigi Rizzo
Author: luigi Date: Tue Jul 31 08:04:49 2012 New Revision: 238941 URL: http://svn.freebsd.org/changeset/base/238941 Log: nobody uses this file except the userspace ipfw code, but the cast of a pointer to an integer needs a cast to prevent a warning for size mismatch. MFC after:1

svn commit: r238900 - head/sbin/ipfw

2012-07-30 Thread Luigi Rizzo
Author: luigi Date: Mon Jul 30 10:55:23 2012 New Revision: 238900 URL: http://svn.freebsd.org/changeset/base/238900 Log: Fix some compile errors at high WARNS, including one for an uninitialized variable. unused parameters and variables are annotated with (void)foo; /*

svn commit: r238903 - head/sbin/ipfw

2012-07-30 Thread Luigi Rizzo
Author: luigi Date: Mon Jul 30 11:02:22 2012 New Revision: 238903 URL: http://svn.freebsd.org/changeset/base/238903 Log: remove the last __unused instance in sbin/ipfw. This particular function (show_prerequisites() ) we should actually remove the argument from the callers as well, but i'll

svn commit: r238912 - head/sys/dev/netmap

2012-07-30 Thread Luigi Rizzo
Author: luigi Date: Mon Jul 30 18:21:48 2012 New Revision: 238912 URL: http://svn.freebsd.org/changeset/base/238912 Log: - move the inclusion of netmap headers to the common part of the code; - more portable annotations for unused arguments; Modified: head/sys/dev/netmap/netmap.c

Re: svn commit: r238912 - head/sys/dev/netmap

2012-07-30 Thread Luigi Rizzo
On Mon, Jul 30, 2012 at 08:53:29PM -0700, Garrett Cooper wrote: On Mon, Jul 30, 2012 at 8:47 PM, Doug Barton do...@freebsd.org wrote: It seems this broke the build? On 07/30/2012 11:21, Luigi Rizzo wrote: Author: luigi Date: Mon Jul 30 18:21:48 2012 New Revision: 238912 URL: http

svn commit: r238937 - head/sys/dev/netmap

2012-07-30 Thread Luigi Rizzo
Author: luigi Date: Tue Jul 31 05:51:48 2012 New Revision: 238937 URL: http://svn.freebsd.org/changeset/base/238937 Log: remove a redundant MALLOC_DECLARE Modified: head/sys/dev/netmap/netmap_kern.h Modified: head/sys/dev/netmap/netmap_kern.h

Re: svn commit: r238818 - head/sys/dev/netmap

2012-07-27 Thread Luigi Rizzo
On Thu, Jul 26, 2012 at 11:39:59PM +0200, Roman Divacky wrote: Why dont you use __builtin_prefetch() ? ignorance :) thanks for the pointer, i'll look at it. i suppose it works for clang too ? cheers luigi ___ svn-src-all@freebsd.org mailing list

svn commit: r238831 - head/sys/dev/netmap

2012-07-27 Thread Luigi Rizzo
Author: luigi Date: Fri Jul 27 10:31:26 2012 New Revision: 238831 URL: http://svn.freebsd.org/changeset/base/238831 Log: remove unused definition, whitespace cleanup Modified: head/sys/dev/netmap/netmap_kern.h Modified: head/sys/dev/netmap/netmap_kern.h

svn commit: r238837 - head/sys/dev/netmap

2012-07-27 Thread Luigi Rizzo
Author: luigi Date: Fri Jul 27 10:52:21 2012 New Revision: 238837 URL: http://svn.freebsd.org/changeset/base/238837 Log: use __builtin_prefetch() for prefetch. merge in the remaining part of the linux-specific glue so i do not need to maintain two different distributions. Modified:

svn commit: r238812 - head/sys/dev/netmap

2012-07-26 Thread Luigi Rizzo
Rizzo. All rights reserved. + * Copyright (C) 2011-2012 Matteo Landi, Luigi Rizzo. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -23,6 +23,8 @@ * SUCH DAMAGE. */ +#define

svn commit: r238818 - head/sys/dev/netmap

2012-07-26 Thread Luigi Rizzo
Author: luigi Date: Thu Jul 26 21:37:58 2012 New Revision: 238818 URL: http://svn.freebsd.org/changeset/base/238818 Log: define prefetch as a noop on !x86 Modified: head/sys/dev/netmap/netmap.c Modified: head/sys/dev/netmap/netmap.c

svn commit: r238765 - head/sys/dev/e1000

2012-07-25 Thread Luigi Rizzo
Author: luigi Date: Wed Jul 25 11:28:15 2012 New Revision: 238765 URL: http://svn.freebsd.org/changeset/base/238765 Log: Use legacy interrupts as a default. This gives up to 10% speedup when used in qemu (and this driver is for non-PCIe cards, so probably its largest use is in virtualized

svn commit: r238770 - head/sys/dev/e1000

2012-07-25 Thread Luigi Rizzo
Author: luigi Date: Wed Jul 25 12:51:33 2012 New Revision: 238770 URL: http://svn.freebsd.org/changeset/base/238770 Log: remove some extra testing code that slipped into the previous commit Reported-by: Alexander Motin Modified: head/sys/dev/e1000/if_lem.c Modified:

svn commit: r237536 - stable/9/release/picobsd/build

2012-06-24 Thread Luigi Rizzo
Author: luigi Date: Sun Jun 24 17:02:28 2012 New Revision: 237536 URL: http://svn.freebsd.org/changeset/base/237536 Log: partial MFC. Mostly, do not build clang when initializing picobsd Modified: stable/9/release/picobsd/build/picobsd Modified: stable/9/release/picobsd/build/picobsd

svn commit: r236519 - stable/9/sys/modules/netmap

2012-06-03 Thread Luigi Rizzo
Author: luigi Date: Sun Jun 3 17:51:53 2012 New Revision: 236519 URL: http://svn.freebsd.org/changeset/base/236519 Log: MFC: let netmap build as a module (but do not connect to the main build yet) Added: stable/9/sys/modules/netmap/ stable/9/sys/modules/netmap/Makefile (contents, props

svn commit: r236256 - head/sys/modules/netmap

2012-05-29 Thread Luigi Rizzo
Author: luigi Date: Tue May 29 19:55:07 2012 New Revision: 236256 URL: http://svn.freebsd.org/changeset/base/236256 Log: add support to build netmap as a module, but for the time being keep it disconnected from the main build. MFC after:3 days Added: head/sys/modules/netmap/

Re: svn commit: r235527 - stable/9/sys/dev/e1000

2012-05-17 Thread Luigi Rizzo
On Thu, May 17, 2012 at 02:59:37PM +0200, Dimitry Andric wrote: On 2012-05-17 00:22, Jack F Vogel wrote: Author: jfv Date: Wed May 16 22:22:52 2012 New Revision: 235527 URL: http://svn.freebsd.org/changeset/base/235527 Log: MFC of the e1000 drivers: revisions include

svn commit: r235548 - stable/9/sys/dev/ixgbe

2012-05-17 Thread Luigi Rizzo
Author: luigi Date: Thu May 17 14:37:01 2012 New Revision: 235548 URL: http://svn.freebsd.org/changeset/base/235548 Log: fix a typo in a comment Modified: stable/9/sys/dev/ixgbe/ixgbe.c Modified: stable/9/sys/dev/ixgbe/ixgbe.c

svn commit: r235547 - head/sys/dev/ixgbe

2012-05-17 Thread Luigi Rizzo
Author: luigi Date: Thu May 17 14:36:19 2012 New Revision: 235547 URL: http://svn.freebsd.org/changeset/base/235547 Log: fix a typo in a comment Modified: head/sys/dev/ixgbe/ixgbe.c Modified: head/sys/dev/ixgbe/ixgbe.c

svn commit: r235549 - in stable/9: sys/dev/netmap sys/net tools/tools/netmap

2012-05-17 Thread Luigi Rizzo
Author: luigi Date: Thu May 17 15:02:51 2012 New Revision: 235549 URL: http://svn.freebsd.org/changeset/base/235549 Log: MFC: the netmap code from HEAD, now supported in the ixgbe/ and e1000/ drivers (re/ will come in the next commit) Modified: stable/9/sys/dev/netmap/if_em_netmap.h

svn commit: r235550 - stable/9/sys/dev/re

2012-05-17 Thread Luigi Rizzo
Author: luigi Date: Thu May 17 15:03:16 2012 New Revision: 235550 URL: http://svn.freebsd.org/changeset/base/235550 Log: MFC: netmap support for the 're' driver Modified: stable/9/sys/dev/re/if_re.c Modified: stable/9/sys/dev/re/if_re.c

Re: svn commit: r235527 - stable/9/sys/dev/e1000

2012-05-17 Thread Luigi Rizzo
On Thu, May 17, 2012 at 03:51:14PM +0200, Luigi Rizzo wrote: ... Hi Jack, Some of the netmap-related changes in this merge don't work, at least not for the LINT kernels: should be fixed now - i have merged the netmap code from HEAD which was the cause of the LINT failure cheers luigi

svn commit: r235561 - stable/9/sys/dev/netmap

2012-05-17 Thread Luigi Rizzo
) @@ -0,0 +1,521 @@ +/* + * Copyright (C) 2011 Matteo Landi, Luigi Rizzo. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must

svn commit: r235562 - head/sys/dev/netmap

2012-05-17 Thread Luigi Rizzo
Author: luigi Date: Thu May 17 20:05:13 2012 New Revision: 235562 URL: http://svn.freebsd.org/changeset/base/235562 Log: this file is too old and not interesting anymore now that netmap has been MFC'ed. Deleted: head/sys/dev/netmap/head.diff ___

svn commit: r234955 - head/tools/tools/netmap

2012-05-03 Thread Luigi Rizzo
Author: luigi Date: Thu May 3 15:34:44 2012 New Revision: 234955 URL: http://svn.freebsd.org/changeset/base/234955 Log: - correct a bug in pcap_dispatch(): a count of 0 means infinity. - in pcap_dispatch(), issue a prefetch on the buffer before the callback, this may save a little bit

svn commit: r234956 - head/tools/tools/netmap

2012-05-03 Thread Luigi Rizzo
Author: luigi Date: Thu May 3 15:37:05 2012 New Revision: 234956 URL: http://svn.freebsd.org/changeset/base/234956 Log: - add code to run pkt-gen on top of libpcap so we can see the difference from a native API - add some testing options, such as conditional prefetching and packet

svn commit: r234962 - head/tools/tools/netmap

2012-05-03 Thread Luigi Rizzo
Author: luigi Date: Thu May 3 16:09:44 2012 New Revision: 234962 URL: http://svn.freebsd.org/changeset/base/234962 Log: add some performance data Modified: head/tools/tools/netmap/README Modified: head/tools/tools/netmap/README

Re: svn commit: r234834 - in head/sys: contrib/pf/net net netinet netinet/ipfw ofed/drivers/infiniband/ulp/ipoib

2012-05-03 Thread Luigi Rizzo
On Thu, May 03, 2012 at 01:00:16PM +0400, Alexander V. Chernikov wrote: ... Reverted in r234946 thank you very much for the quick resolution of the issue. I really appreciate it. cheers luigi ___ svn-src-all@freebsd.org mailing list

svn commit: r234975 - head/tools/tools/netmap

2012-05-03 Thread Luigi Rizzo
Author: luigi Date: Thu May 3 17:08:40 2012 New Revision: 234975 URL: http://svn.freebsd.org/changeset/base/234975 Log: add support for pcap receive statistics (used by net-mgmt/darkstat) Modified: head/tools/tools/netmap/README head/tools/tools/netmap/pcap.c Modified:

svn commit: r234983 - head/release/picobsd/build

2012-05-03 Thread Luigi Rizzo
Author: luigi Date: Thu May 3 20:50:55 2012 New Revision: 234983 URL: http://svn.freebsd.org/changeset/base/234983 Log: Omit clang when building picobsd, it takes way too long. Also note that loader.conf support is incomplete. Modified: head/release/picobsd/build/picobsd Modified:

svn commit: r234984 - head/tools/tools/netrate/netsend

2012-05-03 Thread Luigi Rizzo
Author: luigi Date: Thu May 3 21:03:21 2012 New Revision: 234984 URL: http://svn.freebsd.org/changeset/base/234984 Log: indicate the time per packet in nanoseconds. Modified: head/tools/tools/netrate/netsend/netsend.c Modified: head/tools/tools/netrate/netsend/netsend.c

svn commit: r234986 - head/sys/dev/netmap

2012-05-03 Thread Luigi Rizzo
Author: luigi Date: Thu May 3 21:16:53 2012 New Revision: 234986 URL: http://svn.freebsd.org/changeset/base/234986 Log: print 'netmap stack ring full' only in verbose mode. Modified: head/sys/dev/netmap/netmap.c Modified: head/sys/dev/netmap/netmap.c

Re: svn commit: r234834 - in head/sys: contrib/pf/net net netinet netinet/ipfw ofed/drivers/infiniband/ulp/ipoib

2012-04-30 Thread Luigi Rizzo
On Mon, Apr 30, 2012 at 10:22:23AM +, Alexander V. Chernikov wrote: Author: melifaro Date: Mon Apr 30 10:22:23 2012 New Revision: 234834 URL: http://svn.freebsd.org/changeset/base/234834 Log: Move several enums and structures required for L2 filtering from ip_fw_private.h to

Re: svn commit: r234834 - in head/sys: contrib/pf/net net netinet netinet/ipfw ofed/drivers/infiniband/ulp/ipoib

2012-04-30 Thread Luigi Rizzo
On Mon, Apr 30, 2012 at 04:17:30PM +0400, Alexander V. Chernikov wrote: On 30.04.2012 15:36, Gleb Smirnoff wrote: On Mon, Apr 30, 2012 at 01:48:36PM +0200, Luigi Rizzo wrote: L On Mon, Apr 30, 2012 at 10:22:23AM +, Alexander V. Chernikov wrote: LAuthor: melifaro LDate: Mon Apr 30

svn commit: r234290 - head/sys/dev/netmap

2012-04-14 Thread Luigi Rizzo
Author: luigi Date: Sat Apr 14 16:44:18 2012 New Revision: 234290 URL: http://svn.freebsd.org/changeset/base/234290 Log: i prefer this fix for the -Wformat warning (just one cast, all the other variables are already correct for %x). My previous attempt put the cast in the wrong place.

svn commit: r234225 - head/sys/dev/netmap

2012-04-13 Thread Luigi Rizzo
Author: luigi Date: Fri Apr 13 15:33:12 2012 New Revision: 234225 URL: http://svn.freebsd.org/changeset/base/234225 Log: do not use a deprecated field in a structure. Modified: head/sys/dev/netmap/if_re_netmap.h Modified: head/sys/dev/netmap/if_re_netmap.h

svn commit: r234227 - in head: sys/dev/netmap sys/net tools/tools/netmap

2012-04-13 Thread Luigi Rizzo
Author: luigi Date: Fri Apr 13 16:03:07 2012 New Revision: 234227 URL: http://svn.freebsd.org/changeset/base/234227 Log: A bit of cleanup in the names of fields of netmap-related structures. Use the name 'ring' instead of 'queue' in all fields. Bump NETMAP_API. Modified:

svn commit: r234228 - head/sys/dev/netmap

2012-04-13 Thread Luigi Rizzo
Fri Apr 13 16:32:33 2012 (r234228) @@ -0,0 +1,720 @@ +/* + * Copyright (C) 2012 Matteo Landi, Luigi Rizzo. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met

svn commit: r234229 - in head/sys/dev: ixgbe netmap

2012-04-13 Thread Luigi Rizzo
Author: luigi Date: Fri Apr 13 16:42:54 2012 New Revision: 234229 URL: http://svn.freebsd.org/changeset/base/234229 Log: Properly disable crc stripping when operating in netmap mode. Contrarily to what i wrote in my previous commit, the 82599 does include the CRC in the length. The

Re: svn commit: r234228 - head/sys/dev/netmap

2012-04-13 Thread Luigi Rizzo
On Fri, Apr 13, 2012 at 10:59:59AM -0700, Adrian Chadd wrote: On 13 April 2012 09:32, Luigi Rizzo lu...@freebsd.org wrote: Author: luigi Date: Fri Apr 13 16:32:33 2012 New Revision: 234228 URL: http://svn.freebsd.org/changeset/base/234228 Log: ?add the new memory allocator

svn commit: r234242 - head/sys/dev/netmap

2012-04-13 Thread Luigi Rizzo
Author: luigi Date: Fri Apr 13 22:24:57 2012 New Revision: 234242 URL: http://svn.freebsd.org/changeset/base/234242 Log: fix build with -Wformat -Wmissing-prototypes Modified: head/sys/dev/netmap/netmap_mem2.c Modified: head/sys/dev/netmap/netmap_mem2.c

svn commit: r234168 - head/tools/tools/netmap

2012-04-12 Thread Luigi Rizzo
Author: luigi Date: Thu Apr 12 08:38:56 2012 New Revision: 234168 URL: http://svn.freebsd.org/changeset/base/234168 Log: use getopt to parse options, add one option to set the wait time for link-up events Modified: head/tools/tools/netmap/bridge.c Modified:

svn commit: r234169 - head/sys/dev/netmap

2012-04-12 Thread Luigi Rizzo
Author: luigi Date: Thu Apr 12 08:54:01 2012 New Revision: 234169 URL: http://svn.freebsd.org/changeset/base/234169 Log: use correct selinfo pointer for the generic interrupt handler (it is never used in current FreeBSD drivers). Modified: head/sys/dev/netmap/netmap.c Modified:

svn commit: r234171 - head/sys/net

2012-04-12 Thread Luigi Rizzo
Author: luigi Date: Thu Apr 12 10:32:34 2012 New Revision: 234171 URL: http://svn.freebsd.org/changeset/base/234171 Log: remove an unnecessary #define Modified: head/sys/net/netmap.h Modified: head/sys/net/netmap.h

svn commit: r234174 - head/sys/dev/netmap

2012-04-12 Thread Luigi Rizzo
(empty, because file is newly added) +++ head/sys/dev/netmap/netmap_mem1.c Thu Apr 12 11:27:09 2012 (r234174) @@ -0,0 +1,521 @@ +/* + * Copyright (C) 2011 Matteo Landi, Luigi Rizzo. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without

svn commit: r234185 - head/sys/dev/netmap

2012-04-12 Thread Luigi Rizzo
Author: luigi Date: Thu Apr 12 14:06:05 2012 New Revision: 234185 URL: http://svn.freebsd.org/changeset/base/234185 Log: Apparently the length field in advanced descriptors does not include the CRC irrespective of the setting of CRCSTRIP. The 82599 data sheets (sec. 7.1.6) say differently.

svn commit: r234137 - head/sys/dev/ixgbe

2012-04-11 Thread Luigi Rizzo
Author: luigi Date: Wed Apr 11 15:02:14 2012 New Revision: 234137 URL: http://svn.freebsd.org/changeset/base/234137 Log: Enable prefetching of descriptors on the TX ring, using the same values as in the Intel driver 3.8.21 for linux. The fact that it is standard in the above driver

svn commit: r234140 - head/sys/dev/netmap

2012-04-11 Thread Luigi Rizzo
Author: luigi Date: Wed Apr 11 16:11:08 2012 New Revision: 234140 URL: http://svn.freebsd.org/changeset/base/234140 Log: A couple of changes related to ixgbe operation in netmap mode: - add a sysctl, dev.netmap.ix_crcstrip, to control whether ixgbe should strip the CRC on received

svn commit: r233947 - head/tools/tools/netmap

2012-04-06 Thread Luigi Rizzo
Author: luigi Date: Fri Apr 6 14:26:05 2012 New Revision: 233947 URL: http://svn.freebsd.org/changeset/base/233947 Log: we need to specify a NETMAP_API version or the ioctl() will fail. Modified: head/tools/tools/netmap/pcap.c Modified: head/tools/tools/netmap/pcap.c

svn commit: r232824 - head/sys/net

2012-03-11 Thread Luigi Rizzo
Author: luigi Date: Sun Mar 11 17:35:12 2012 New Revision: 232824 URL: http://svn.freebsd.org/changeset/base/232824 Log: - remove an extra parenthesis in a closing brace; - add the macro NETMAP_RING_FIRST_RESERVED() which returns the index of the first non-released buffer in the ring

svn commit: r232347 - head/sbin/ipfw

2012-03-01 Thread Luigi Rizzo
Author: luigi Date: Thu Mar 1 17:35:16 2012 New Revision: 232347 URL: http://svn.freebsd.org/changeset/base/232347 Log: remove some write-only variables. There is another block of code that is now useless as the computation is done in the kernel. Modified: head/sbin/ipfw/dummynet.c

Re: svn commit: r232238 - in head: share/man/man4 sys/dev/e1000 sys/dev/ixgbe sys/dev/netmap sys/dev/re sys/net tools/tools/netmap

2012-02-29 Thread Luigi Rizzo
On Wed, Feb 29, 2012 at 01:14:33PM +0400, Slawa Olhovchenkov wrote: On Tue, Feb 28, 2012 at 10:58:56PM +0100, Luigi Rizzo wrote: On Wed, Feb 29, 2012 at 12:35:23AM +0400, Slawa Olhovchenkov wrote: ... ?3. The two changes above unfortunately require an API change, so while

Re: svn commit: r232238 - in head: share/man/man4 sys/dev/e1000 sys/dev/ixgbe sys/dev/netmap sys/dev/re sys/net tools/tools/netmap

2012-02-29 Thread Luigi Rizzo
On Wed, Feb 29, 2012 at 01:46:03PM +0400, Slawa Olhovchenkov wrote: On Wed, Feb 29, 2012 at 10:51:26AM +0100, Luigi Rizzo wrote: On Wed, Feb 29, 2012 at 01:14:33PM +0400, Slawa Olhovchenkov wrote: On Tue, Feb 28, 2012 at 10:58:56PM +0100, Luigi Rizzo wrote: On Wed, Feb 29, 2012

Re: svn commit: r232238 - in head: share/man/man4 sys/dev/e1000 sys/dev/ixgbe sys/dev/netmap sys/dev/re sys/net tools/tools/netmap

2012-02-28 Thread Luigi Rizzo
On Wed, Feb 29, 2012 at 12:35:23AM +0400, Slawa Olhovchenkov wrote: ... ?3. The two changes above unfortunately require an API change, so while ? ? at it add a version field and some spares to the ioctl() argument ? ? to help detect mismatches. Is it worth bumping

Re: svn commit: r232272 - head/sys/netinet/ipfw

2012-02-28 Thread Luigi Rizzo
On Tue, Feb 28, 2012 at 09:53:39PM +, Oleg Bulyzhin wrote: Author: oleg Date: Tue Feb 28 21:53:39 2012 New Revision: 232272 URL: http://svn.freebsd.org/changeset/base/232272 Log: lookup_dyn_rule_locked(): style(9) cleanup MFC after: 1 month is there a reason for delaying the

Re: svn commit: r232272 - head/sys/netinet/ipfw

2012-02-28 Thread Luigi Rizzo
On Wed, Feb 29, 2012 at 02:39:37AM +0400, Oleg Bulyzhin wrote: On Tue, Feb 28, 2012 at 11:22:52PM +0100, Luigi Rizzo wrote: On Tue, Feb 28, 2012 at 09:53:39PM +, Oleg Bulyzhin wrote: Author: oleg Date: Tue Feb 28 21:53:39 2012 New Revision: 232272 URL: http://svn.freebsd.org

svn commit: r232238 - in head: share/man/man4 sys/dev/e1000 sys/dev/ixgbe sys/dev/netmap sys/dev/re sys/net tools/tools/netmap

2012-02-27 Thread Luigi Rizzo
Author: luigi Date: Mon Feb 27 19:05:01 2012 New Revision: 232238 URL: http://svn.freebsd.org/changeset/base/232238 Log: A bunch of netmap fixes: USERSPACE: 1. add support for devices with different number of rx and tx queues; 2. add better support for zero-copy operation, adding an

Re: svn commit: r232238 - in head: share/man/man4 sys/dev/e1000 sys/dev/ixgbe sys/dev/netmap sys/dev/re sys/net tools/tools/netmap

2012-02-27 Thread Luigi Rizzo
On Mon, Feb 27, 2012 at 07:05:45PM -0500, Ben Kaduk wrote: ... ?1. add support for devices with different number of rx and tx queues; ?2. add better support for zero-copy operation, adding an extra field ? ? to the netmap ring to indicate how many buffers we have already processed ? ?

svn commit: r231879 - head/sys/dev/oce

2012-02-17 Thread Luigi Rizzo
Author: luigi Date: Fri Feb 17 13:55:17 2012 New Revision: 231879 URL: http://svn.freebsd.org/changeset/base/231879 Log: Patches from Naresh Raju Gottumukkala - Feature: UMC - Universal Multi Channel support - Bugfix: BE3 Firmware Flashing bug. - Code improvements: - Removed

svn commit: r231880 - head/share/man/man4

2012-02-17 Thread Luigi Rizzo
Author: luigi Date: Fri Feb 17 14:02:44 2012 New Revision: 231880 URL: http://svn.freebsd.org/changeset/base/231880 Log: add manpage for the oce driver Submitted by: Naresh Raju Gottumukkala (Emulex) MFC after:3 days Added: head/share/man/man4/oce.4 (contents, props changed)

svn commit: r231881 - head/sys/dev/netmap

2012-02-17 Thread Luigi Rizzo
Author: luigi Date: Fri Feb 17 14:09:04 2012 New Revision: 231881 URL: http://svn.freebsd.org/changeset/base/231881 Log: Various cleanups for readability (no functional changes) - remove the KEVENT code, which was incomplete and not compiled anyways; - change some while() loops into

svn commit: r231778 - head/sys/dev/netmap

2012-02-15 Thread Luigi Rizzo
Author: luigi Date: Wed Feb 15 18:59:26 2012 New Revision: 231778 URL: http://svn.freebsd.org/changeset/base/231778 Log: reduce the differences between these three files. The three drivers (em, lem and igb) are extremely similar, too bad that the structures use different names and we cannot

svn commit: r231796 - in head/sys/dev: e1000 ixgbe netmap

2012-02-15 Thread Luigi Rizzo
Author: luigi Date: Wed Feb 15 23:13:29 2012 New Revision: 231796 URL: http://svn.freebsd.org/changeset/base/231796 Log: (This commit only touches code within the DEV_NETMAP blocks) Introduce some functions to map NIC ring indexes into netmap ring indexes and vice versa. This way we can

svn commit: r231649 - in stable/8: sbin/ifconfig sys/net

2012-02-14 Thread Luigi Rizzo
Author: luigi Date: Tue Feb 14 09:36:02 2012 New Revision: 231649 URL: http://svn.freebsd.org/changeset/base/231649 Log: MFC: reserve an IFCAP bit for netmap, instruct ifconfig to parse the information (just a change on the format string suffices), and put a comment on if_var.h to tell that

svn commit: r231663 - in stable/9/sys: conf dev/oce modules modules/oce

2012-02-14 Thread Luigi Rizzo
Author: luigi Date: Tue Feb 14 10:30:22 2012 New Revision: 231663 URL: http://svn.freebsd.org/changeset/base/231663 Log: MFC: the oce driver for Emulex OneConnect 10Gbit Ethernet. This is the same exact code that you can find in HEAD Added: stable/9/sys/dev/oce/

<    1   2   3   4   5   6   7   >