Re: svn commit: r316990 - head

2017-04-15 Thread Luigi Rizzo
sz Pre-commit review recommended. > iscsi(4) trasz Pre-commit review recommended. > rctl(8)trasz Pre-commit review recommended. > > -- -+--- Prof. Luigi RIZZO, ri...@iet.unipi.it . Dip

Re: svn commit: r314915 - head/tools/tools/netmap

2017-03-08 Thread Luigi Rizzo
gt; (r314915) > @@ -8,7 +8,6 @@ PROGS = pkt-gen nmreplay bridge vale-ctl > CLEANFILES = $(PROGS) *.o > MAN= > CFLAGS += -Werror -Wall > -CFLAGS += -nostdinc -I ../../../sys -I/usr/include > CFLAGS += -Wextra > > LDFLAGS += -lpthread > -- --

svn commit: r308000 - in head/sys: dev/netmap net

2016-10-27 Thread Luigi Rizzo
Author: luigi Date: Thu Oct 27 09:46:22 2016 New Revision: 308000 URL: https://svnweb.freebsd.org/changeset/base/308000 Log: Various fixes for ptnet/ptnetmap (passthrough of netmap ports). In detail: - use PCI_VENDOR and PCI_DEVICE ids from a publicly allocated range (thanks to RedHat)

svn commit: r307574 - in head/sys: dev/netmap net

2016-10-18 Thread Luigi Rizzo
Author: luigi Date: Tue Oct 18 16:18:25 2016 New Revision: 307574 URL: https://svnweb.freebsd.org/changeset/base/307574 Log: remove stale and unused code from various files fix build on 32 bit platforms simplify logic in netmap_virt.h The commands (in net/netmap.h) to configure

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

2016-10-18 Thread Luigi Rizzo
Author: luigi Date: Tue Oct 18 15:50:20 2016 New Revision: 307573 URL: https://svnweb.freebsd.org/changeset/base/307573 Log: remove conditional code for an obsolete feature. if_ptnet now does better. Modified: head/sys/dev/e1000/if_lem.c Modified: head/sys/dev/e1000/if_lem.c

svn commit: r307572 - in head/sys: dev/netmap net

2016-10-18 Thread Luigi Rizzo
Author: luigi Date: Tue Oct 18 15:41:57 2016 New Revision: 307572 URL: https://svnweb.freebsd.org/changeset/base/307572 Log: remove trailing whitespace. No code changes. Modified: head/sys/dev/netmap/if_vtnet_netmap.h head/sys/dev/netmap/netmap_monitor.c head/sys/dev/netmap/netmap_pipe.c

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

2016-10-18 Thread Luigi Rizzo
Author: luigi Date: Tue Oct 18 15:24:56 2016 New Revision: 307571 URL: https://svnweb.freebsd.org/changeset/base/307571 Log: fix a stale sentence in the manpage Modified: head/share/man/man4/netmap.4 Modified: head/share/man/man4/netmap.4

svn commit: r307396 - head/sys/net

2016-10-16 Thread Luigi Rizzo
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/net/netmap_virt.h Sun Oct 16 18:27:41 2016(r307396) @@ -0,0 +1,325 @@ +/* + * Copyright (C) 2013-2016 Luigi Rizzo + * Copyright (C) 2013-2016 Giuseppe Lettieri + * Copyright (C

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

2016-10-16 Thread Luigi Rizzo
Author: luigi Date: Sun Oct 16 15:22:17 2016 New Revision: 307395 URL: https://svnweb.freebsd.org/changeset/base/307395 Log: add two missing files for the netmap import Added: head/sys/dev/netmap/if_ptnet.c (contents, props changed) head/sys/dev/netmap/netmap_pt.c (contents, props

svn commit: r307394 - in head: share/man/man4 sys/conf sys/dev/netmap sys/modules/netmap sys/net tools/tools/netmap

2016-10-16 Thread Luigi Rizzo
ppen ? */ D("TDH wrap %d", nic_i); nic_i -= kring->nkr_num_slots; @@ -486,6 +500,7 @@ ixgbe_netmap_attach(struct adapter *adap na.nm_rxsync = ixgbe_netmap_rxsync; na.nm_register = ixgbe_netmap_reg; na.num_tx_rings = na.num_rx_rings = adapter->num_queues; + na.nm_intr =

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

2016-10-14 Thread Luigi Rizzo
Author: luigi Date: Fri Oct 14 15:16:44 2016 New Revision: 307320 URL: https://svnweb.freebsd.org/changeset/base/307320 Log: adjust picobsd script to work with HEAD Modified: head/release/picobsd/build/picobsd Modified: head/release/picobsd/build/picobsd

svn commit: r294855 - head/sys/netpfil/ipfw

2016-01-26 Thread Luigi Rizzo
Author: luigi Date: Tue Jan 26 22:45:05 2016 New Revision: 294855 URL: https://svnweb.freebsd.org/changeset/base/294855 Log: avoid warnings for signed/unsigned comparison and unused arguments Modified: head/sys/netpfil/ipfw/dn_heap.c Modified: head/sys/netpfil/ipfw/dn_heap.c

svn commit: r294856 - head/sys/netpfil/ipfw

2016-01-26 Thread Luigi Rizzo
Author: luigi Date: Tue Jan 26 22:45:45 2016 New Revision: 294856 URL: https://svnweb.freebsd.org/changeset/base/294856 Log: prevent warning for unused argument Modified: head/sys/netpfil/ipfw/dn_sched_fifo.c Modified: head/sys/netpfil/ipfw/dn_sched_fifo.c

svn commit: r294857 - head/sys/netpfil/ipfw

2016-01-26 Thread Luigi Rizzo
Author: luigi Date: Tue Jan 26 22:46:58 2016 New Revision: 294857 URL: https://svnweb.freebsd.org/changeset/base/294857 Log: prevent warnings for signed/unsigned comparisons and unused arguments. Add checks for parameters overflowing 32 bit. Modified: head/sys/netpfil/ipfw/dn_sched_rr.c

svn commit: r294858 - head/sys/netpfil/ipfw

2016-01-26 Thread Luigi Rizzo
Author: luigi Date: Tue Jan 26 23:36:18 2016 New Revision: 294858 URL: https://svnweb.freebsd.org/changeset/base/294858 Log: fix various warnings (signed/unsigned, printf types, unused arguments) Modified: head/sys/netpfil/ipfw/dn_sched_qfq.c Modified: head/sys/netpfil/ipfw/dn_sched_qfq.c

svn commit: r294859 - head/sys/netpfil/ipfw/test

2016-01-26 Thread Luigi Rizzo
Author: luigi Date: Tue Jan 26 23:37:07 2016 New Revision: 294859 URL: https://svnweb.freebsd.org/changeset/base/294859 Log: fix various warnings to compile the test code with -Wextra Modified: head/sys/netpfil/ipfw/test/Makefile head/sys/netpfil/ipfw/test/main.c

svn commit: r294879 - head/sys/netpfil/ipfw

2016-01-26 Thread Luigi Rizzo
Author: luigi Date: Wed Jan 27 02:08:30 2016 New Revision: 294879 URL: https://svnweb.freebsd.org/changeset/base/294879 Log: bugfix: the scheduler template (dn_schk) for the round robin scheduler is followed by another structure (rr_schk) whose size must be set in the schk_datalen field of

svn commit: r294881 - head/sys/netpfil/ipfw

2016-01-26 Thread Luigi Rizzo
Author: luigi Date: Wed Jan 27 02:14:08 2016 New Revision: 294881 URL: https://svnweb.freebsd.org/changeset/base/294881 Log: the _Static_assert was not supposed to be in the commit. Modified: head/sys/netpfil/ipfw/dn_sched_rr.c Modified: head/sys/netpfil/ipfw/dn_sched_rr.c

svn commit: r294882 - head/sys/netpfil/ipfw/test

2016-01-26 Thread Luigi Rizzo
Author: luigi Date: Wed Jan 27 02:22:31 2016 New Revision: 294882 URL: https://svnweb.freebsd.org/changeset/base/294882 Log: cleanup and document in some detail the internals of the testing code for dummynet schedulers Modified: head/sys/netpfil/ipfw/test/Makefile

svn commit: r294761 - head/sys/netpfil/ipfw

2016-01-25 Thread Luigi Rizzo
Author: luigi Date: Tue Jan 26 04:48:24 2016 New Revision: 294761 URL: https://svnweb.freebsd.org/changeset/base/294761 Log: Revert one chunk from commit 285362, which introduced an off-by-one error in computing a shift index. The error was due to the use of mixed fls() / __fls() functions

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

2015-07-19 Thread Luigi Rizzo
Author: luigi Date: Sun Jul 19 18:07:25 2015 New Revision: 285699 URL: https://svnweb.freebsd.org/changeset/base/285699 Log: add a use count so the netmap module cannot be unloaded while in use. Modified: head/sys/dev/netmap/netmap.c head/sys/dev/netmap/netmap_freebsd.c

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

2015-07-19 Thread Luigi Rizzo
Author: luigi Date: Sun Jul 19 18:06:30 2015 New Revision: 285698 URL: https://svnweb.freebsd.org/changeset/base/285698 Log: properly destroy persistent vale ports Modified: head/sys/dev/netmap/netmap_vale.c Modified: head/sys/dev/netmap/netmap_vale.c

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

2015-07-19 Thread Luigi Rizzo
Author: luigi Date: Sun Jul 19 17:54:42 2015 New Revision: 285695 URL: https://svnweb.freebsd.org/changeset/base/285695 Log: small documentation update Modified: head/sys/dev/netmap/netmap_kern.h Modified: head/sys/dev/netmap/netmap_kern.h

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

2015-07-19 Thread Luigi Rizzo
Author: luigi Date: Sun Jul 19 18:05:49 2015 New Revision: 285697 URL: https://svnweb.freebsd.org/changeset/base/285697 Log: do not free NULL if pipe allocation fails Modified: head/sys/dev/netmap/netmap_pipe.c Modified: head/sys/dev/netmap/netmap_pipe.c

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

2015-07-19 Thread Luigi Rizzo
Author: luigi Date: Sun Jul 19 18:04:51 2015 New Revision: 285696 URL: https://svnweb.freebsd.org/changeset/base/285696 Log: release a reference when stopping a monitor Modified: head/sys/dev/netmap/netmap_monitor.c Modified: head/sys/dev/netmap/netmap_monitor.c

svn commit: r285677 - head/sys/netinet

2015-07-18 Thread Luigi Rizzo
Author: luigi Date: Sat Jul 18 15:28:32 2015 New Revision: 285677 URL: https://svnweb.freebsd.org/changeset/base/285677 Log: fix a typo in a comment Modified: head/sys/netinet/ip_var.h Modified: head/sys/netinet/ip_var.h

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

2015-07-13 Thread Luigi Rizzo
Author: luigi Date: Mon Jul 13 10:23:52 2015 New Revision: 285445 URL: https://svnweb.freebsd.org/changeset/base/285445 Log: set the refcount for the structure (dropped by mistake in the last commit). Modified: head/sys/dev/netmap/netmap_freebsd.c Modified:

svn commit: r285351 - head/sys/dev/virtio/network

2015-07-10 Thread Luigi Rizzo
Author: luigi Date: Fri Jul 10 07:13:14 2015 New Revision: 285351 URL: https://svnweb.freebsd.org/changeset/base/285351 Log: add netmap dependency when compiled as a module Modified: head/sys/dev/virtio/network/if_vtnet.c Modified: head/sys/dev/virtio/network/if_vtnet.c

svn commit: r285360 - head/sys/netpfil/ipfw/test

2015-07-10 Thread Luigi Rizzo
Author: luigi Date: Fri Jul 10 18:10:40 2015 New Revision: 285360 URL: https://svnweb.freebsd.org/changeset/base/285360 Log: add code to compute fairness indexes; cleanups to remove compile warnings. Modified: head/sys/netpfil/ipfw/test/dn_test.h head/sys/netpfil/ipfw/test/main.c

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

2015-07-10 Thread Luigi Rizzo
Author: luigi Date: Fri Jul 10 16:05:24 2015 New Revision: 285359 URL: https://svnweb.freebsd.org/changeset/base/285359 Log: staticize functions only used in netmap.c (detected by jenkins run with gcc 4.9) Update documentation on the use of netmap_priv_d, rename the refcount and use

svn commit: r285362 - head/sys/netpfil/ipfw

2015-07-10 Thread Luigi Rizzo
Author: luigi Date: Fri Jul 10 19:24:36 2015 New Revision: 285362 URL: https://svnweb.freebsd.org/changeset/base/285362 Log: assorted algorithmic fixes from Paolo Valente (one of my qfq coauthors): - use 1ULL to avoid shift truncations - recompute the sum of weight dynamically to provide

svn commit: r285361 - head/sys/netpfil/ipfw

2015-07-10 Thread Luigi Rizzo
Author: luigi Date: Fri Jul 10 19:18:49 2015 New Revision: 285361 URL: https://svnweb.freebsd.org/changeset/base/285361 Log: one more warning suppression when compiling the test code in userspace. Modified: head/sys/netpfil/ipfw/dn_heap.c Modified: head/sys/netpfil/ipfw/dn_heap.c

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

2015-07-09 Thread Luigi Rizzo
Author: luigi Date: Fri Jul 10 05:07:18 2015 New Revision: 285348 URL: https://svnweb.freebsd.org/changeset/base/285348 Log: rev.284898 removed _SHLIBDIRPREFIX so we need to reconstruct its value to properly locate libraries created in the buildworld phase. Modified:

svn commit: r285349 - in head/sys: dev/cxgbe dev/e1000 dev/ixgbe dev/netmap dev/re net

2015-07-09 Thread Luigi Rizzo
Author: luigi Date: Fri Jul 10 05:51:36 2015 New Revision: 285349 URL: https://svnweb.freebsd.org/changeset/base/285349 Log: Sync netmap sources with the version in our private tree. This commit contains large contributions from Giuseppe Lettieri and Stefano Garzarella, is partly supported

svn commit: r285284 - head/lib/liblzma

2015-07-08 Thread Luigi Rizzo
Author: luigi Date: Wed Jul 8 18:36:37 2015 New Revision: 285284 URL: https://svnweb.freebsd.org/changeset/base/285284 Log: only enable immintrin when clang is used. The base gcc does not support it. Reviewed by: delphij Modified: head/lib/liblzma/config.h Modified:

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

2015-07-08 Thread Luigi Rizzo
Author: luigi Date: Wed Jul 8 16:41:25 2015 New Revision: 285280 URL: https://svnweb.freebsd.org/changeset/base/285280 Log: trap some errors when building picobsd Modified: head/release/picobsd/build/picobsd Modified: head/release/picobsd/build/picobsd

svn commit: r285281 - head/release/picobsd/floppy.tree/etc

2015-07-08 Thread Luigi Rizzo
Author: luigi Date: Wed Jul 8 16:42:28 2015 New Revision: 285281 URL: https://svnweb.freebsd.org/changeset/base/285281 Log: add an extra tty for picobsd builds Modified: head/release/picobsd/floppy.tree/etc/ttys Modified: head/release/picobsd/floppy.tree/etc/ttys

svn commit: r283583 - stable/10/contrib/tcpdump

2015-05-26 Thread Luigi Rizzo
Author: luigi Date: Tue May 26 21:12:02 2015 New Revision: 283583 URL: https://svnweb.freebsd.org/changeset/base/283583 Log: MFC: 272451, 272653 add CAP_EVENT so that we can poll() on netmap and pcap file descriptors Modified: stable/10/contrib/tcpdump/tcpdump.c Modified:

svn commit: r283111 - head/sys/netpfil/ipfw

2015-05-19 Thread Luigi Rizzo
Author: luigi Date: Tue May 19 14:49:31 2015 New Revision: 283111 URL: https://svnweb.freebsd.org/changeset/base/283111 Log: remove an extra ; after MODULE_DEPEND (would otherwise generate a warning with more verbose compiler flags) MFC after:1 week Modified:

svn commit: r283113 - head/sys/netpfil/ipfw

2015-05-19 Thread Luigi Rizzo
Author: luigi Date: Tue May 19 15:29:00 2015 New Revision: 283113 URL: https://svnweb.freebsd.org/changeset/base/283113 Log: remove a redundant ; at the end of a function MFC after:1 week Modified: head/sys/netpfil/ipfw/ip_dn_private.h Modified:

svn commit: r283116 - head/sys/netpfil/ipfw

2015-05-19 Thread Luigi Rizzo
Author: luigi Date: Tue May 19 16:51:30 2015 New Revision: 283116 URL: https://svnweb.freebsd.org/changeset/base/283116 Log: use proper types to represent function pointers Modified: head/sys/netpfil/ipfw/ip_fw_pfil.c head/sys/netpfil/ipfw/ip_fw_sockopt.c Modified:

svn commit: r282856 - head/sys/netpfil/ipfw

2015-05-13 Thread Luigi Rizzo
Author: luigi Date: Wed May 13 11:53:25 2015 New Revision: 282856 URL: https://svnweb.freebsd.org/changeset/base/282856 Log: bugfix (only affecting the lookup option in the userspace version of ipfw): the conditional block should not include the 'else' otherwise the code does a 'break;'

svn commit: r279232 - in head/sys/dev: ixl netmap

2015-02-23 Thread Luigi Rizzo
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/netmap/if_ixl_netmap.h Tue Feb 24 06:20:50 2015 (r279232) @@ -0,0 +1,422 @@ +/* + * Copyright (C) 2015, Luigi Rizzo. All rights reserved. + * + * Redistribution and use in source

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

2015-02-22 Thread Luigi Rizzo
Author: luigi Date: Mon Feb 23 07:28:31 2015 New Revision: 279199 URL: https://svnweb.freebsd.org/changeset/base/279199 Log: add MODULE_VERSION, needed to track module dependencies MFC after:3 days Modified: head/sys/dev/netmap/netmap_freebsd.c Modified:

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

2015-02-14 Thread Luigi Rizzo
Author: luigi Date: Sat Feb 14 19:03:11 2015 New Revision: 278774 URL: https://svnweb.freebsd.org/changeset/base/278774 Log: two minor changes from the master netmap version: 1. handle errors from nm_config(), if any (none of the FreeBSD drivers currently returns an error on this

svn commit: r278775 - stable/10/sys/net

2015-02-14 Thread Luigi Rizzo
Author: luigi Date: Sat Feb 14 19:18:56 2015 New Revision: 278775 URL: https://svnweb.freebsd.org/changeset/base/278775 Log: sync with the version in head (r274338): fix one comment, and return kernel-supplied error if available. no API changes. Modified: stable/10/sys/net/netmap_user.h

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

2015-02-14 Thread Luigi Rizzo
Author: luigi Date: Sat Feb 14 18:59:31 2015 New Revision: 278773 URL: https://svnweb.freebsd.org/changeset/base/278773 Log: whitespace change: clarify the role of MAKEDEV_ETERNAL_KLD, and remove an old #ifdef __FreeBSD__ since the code is valid on all platforms. Modified:

svn commit: r278779 - stable/10/sys/dev/netmap

2015-02-14 Thread Luigi Rizzo
Author: luigi Date: Sat Feb 14 19:41:26 2015 New Revision: 278779 URL: https://svnweb.freebsd.org/changeset/base/278779 Log: sync the code with the version in head. which the exception of svn 275358 (M_FLOWID deprecation, only a couple of lines) which cannot be merged. if_lem_netmap.h,

lost change 272451 - CAP_EVENT for tcpdump (Re: svn commit: r276788 - in head: contrib/tcpdump contrib/tcpdump/lbl contrib/tcpdump/missing usr.sbin/tcpdump/tcpdump

2015-02-05 Thread Luigi Rizzo
Hi, the update to tcpdump 4.6.2 also lost svn272451 and 272653 (addition of CAP_EVENT to the capabilities given to tcpdump). Given this and the other bug fixed in 277638, I am not sure if there are other local changes that have been lost in the merge. Also I wonder whether there is something we

svn commit: r277722 - in stable/10: contrib/libpcap lib/libpcap

2015-01-25 Thread Luigi Rizzo
/pcap-netmap.c Mon Jan 26 03:26:37 2015 (r277722, copy of r272659, head/lib/libpcap/pcap-netmap.c) @@ -0,0 +1,283 @@ +/* + * Copyright (C) 2014 Luigi Rizzo. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided

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

2015-01-24 Thread Luigi Rizzo
Author: luigi Date: Sat Jan 24 08:48:05 2015 New Revision: 277641 URL: https://svnweb.freebsd.org/changeset/base/277641 Log: do not strip /stand This is a temporary workaround until the elftoolchain's version of strip is fixed: The previous (GNU) strip, when acting on a file with

WITHOUT_CASPER not working anymore ? Re: svn commit: r276788 - in head: contrib/tcpdump contrib/tcpdump/lbl contrib/tcpdump/missing usr.sbin/tcpdump/tcpdump

2015-01-23 Thread Luigi Rizzo
Not that i mind if it is intentional (though it seems not), but after this commit tcpdump does not build anymore with -DWITHOUT_CASPER. To be precise, the failure is when you do a buildworld with WITHOUT_CASPER, which does not install the libcapsicum headers. I understand that there is a change

svn commit: r277639 - stable/10/release/picobsd/build

2015-01-23 Thread Luigi Rizzo
Author: luigi Date: Sat Jan 24 06:11:13 2015 New Revision: 277639 URL: https://svnweb.freebsd.org/changeset/base/277639 Log: use the same version as in HEAD (among other things, the -v flag to make is long since unsupported) Modified: stable/10/release/picobsd/build/picobsd Modified:

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

2014-11-12 Thread Luigi Rizzo
Author: luigi Date: Thu Nov 13 00:40:34 2014 New Revision: 274459 URL: https://svnweb.freebsd.org/changeset/base/274459 Log: add support for private knote lock (reduces lock contention), adapting OS_selrecord accordingly. Problem and fix suggested by adrian and jmg Modified:

svn commit: r274338 - head/sys/net

2014-11-10 Thread Luigi Rizzo
Author: luigi Date: Mon Nov 10 08:31:56 2014 New Revision: 274338 URL: https://svnweb.freebsd.org/changeset/base/274338 Log: return kernel-supplied error if available. Also fix field names in a comment. Modified: head/sys/net/netmap_user.h Modified: head/sys/net/netmap_user.h

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

2014-11-10 Thread Luigi Rizzo
Author: luigi Date: Mon Nov 10 20:19:58 2014 New Revision: 274353 URL: https://svnweb.freebsd.org/changeset/base/274353 Log: sync a comment with our internal repo Modified: head/sys/dev/netmap/netmap_generic.c Modified: head/sys/dev/netmap/netmap_generic.c

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

2014-11-10 Thread Luigi Rizzo
Author: luigi Date: Mon Nov 10 20:25:33 2014 New Revision: 274354 URL: https://svnweb.freebsd.org/changeset/base/274354 Log: initialize *color if passed as an argument Modified: head/sys/dev/netmap/netmap_freebsd.c Modified: head/sys/dev/netmap/netmap_freebsd.c

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

2014-11-10 Thread Luigi Rizzo
Author: luigi Date: Mon Nov 10 21:00:23 2014 New Revision: 274355 URL: https://svnweb.freebsd.org/changeset/base/274355 Log: fix a typo Modified: head/sys/dev/netmap/netmap_kern.h Modified: head/sys/dev/netmap/netmap_kern.h

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

2014-11-10 Thread Luigi Rizzo
Author: luigi Date: Tue Nov 11 00:10:44 2014 New Revision: 274361 URL: https://svnweb.freebsd.org/changeset/base/274361 Log: - fix typo: use ring size from the rx ring, not the tx one (they should be the same, but just in case); - reuse the previously computed len-1 value Modified:

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

2014-11-10 Thread Luigi Rizzo
Author: luigi Date: Tue Nov 11 00:13:28 2014 New Revision: 274362 URL: https://svnweb.freebsd.org/changeset/base/274362 Log: in the Linux section, properly define the NMG_LOCK type. Also import WITH_GENERIC in preparation to adding fine-grained options to disable specific netmap components.

Re: svn commit: r273112 - head/sys/dev/ixgbe

2014-11-06 Thread Luigi Rizzo
On Thu, Nov 06, 2014 at 03:05:30PM +0400, Alexander V. Chernikov wrote: On 15.10.2014 05:22, Adrian Chadd wrote: Author: adrian Date: Wed Oct 15 01:22:56 2014 New Revision: 273112 URL: https://svnweb.freebsd.org/changeset/base/273112 Log: Set the DROP_EN bit before the RX queue

svn commit: r273479 - head/sys/net

2014-10-22 Thread Luigi Rizzo
Author: luigi Date: Wed Oct 22 18:55:36 2014 New Revision: 273479 URL: https://svnweb.freebsd.org/changeset/base/273479 Log: since we cast a pointer, use the correct signedness (this was already in, and got lost in a recent update). Modified: head/sys/net/radix.c Modified:

Re: svn commit: r273274 - head/sys/netpfil/ipfw

2014-10-21 Thread Luigi Rizzo
On Sun, Oct 19, 2014 at 03:02:07PM +0300, Andriy Gapon wrote: On 19/10/2014 14:15, Alexander V. Chernikov wrote: +static uint32_t +roundup2p(uint32_t v) +{ + + v--; + v |= v 1; + v |= v 2; + v |= v 4; + v |= v 8; + v |= v 16; + v++; + + return (v);

svn commit: r273453 - head/sys/netpfil/ipfw

2014-10-21 Thread Luigi Rizzo
Author: luigi Date: Wed Oct 22 05:21:36 2014 New Revision: 273453 URL: https://svnweb.freebsd.org/changeset/base/273453 Log: remove/fix old code for building ipfw and dummynet in userspace Modified: head/sys/netpfil/ipfw/ip_dn_io.c head/sys/netpfil/ipfw/ip_fw_private.h

Re: svn commit: r273266 - in head: lib/libkvm sys/compat/freebsd32 sys/kern sys/sys

2014-10-18 Thread Luigi Rizzo
On Sat, Oct 18, 2014 at 07:36:12PM +, Adrian Chadd wrote: Author: adrian Date: Sat Oct 18 19:36:11 2014 New Revision: 273266 URL: https://svnweb.freebsd.org/changeset/base/273266 Log: Update the ULE scheduler + thread and kinfo structs to use int for cpuid rather than u_char.

Re: svn commit: r272906 - in head/sys: conf libkern netpfil/pf sys

2014-10-16 Thread Luigi Rizzo
On Wed, Oct 15, 2014 at 08:14:19AM +0400, Gleb Smirnoff wrote: On Tue, Oct 14, 2014 at 11:38:23PM -0400, Ed Maste wrote: E On 14 October 2014 23:04, Gleb Smirnoff gleb...@freebsd.org wrote: E E Look at results at the end of email. Guess what -j and -m mean. I E want either proving me doing

svn commit: r272604 - stable/10/sys/dev/netmap

2014-10-06 Thread Luigi Rizzo
Author: luigi Date: Mon Oct 6 09:46:21 2014 New Revision: 272604 URL: https://svnweb.freebsd.org/changeset/base/272604 Log: MFC r272111 fix a panic when passing ifioctl from a netmap file descriptor to the underlying device. This needs to be merged to 10.1 Modified:

svn commit: r272648 - stable/10/sys/modules/netmap

2014-10-06 Thread Luigi Rizzo
Author: luigi Date: Mon Oct 6 14:39:45 2014 New Revision: 272648 URL: https://svnweb.freebsd.org/changeset/base/272648 Log: MFC r272108: add missing file for building netmap as a module Modified: stable/10/sys/modules/netmap/Makefile Modified: stable/10/sys/modules/netmap/Makefile

svn commit: r272653 - head/contrib/tcpdump

2014-10-06 Thread Luigi Rizzo
Author: luigi Date: Mon Oct 6 15:03:08 2014 New Revision: 272653 URL: https://svnweb.freebsd.org/changeset/base/272653 Log: Fix comment and sort rights by name MFC after:3 days Modified: head/contrib/tcpdump/tcpdump.c Modified: head/contrib/tcpdump/tcpdump.c

svn commit: r272659 - in head: contrib/libpcap lib/libpcap

2014-10-06 Thread Luigi Rizzo
is newly added) +++ head/lib/libpcap/pcap-netmap.c Mon Oct 6 15:48:28 2014 (r272659) @@ -0,0 +1,283 @@ +/* + * Copyright (C) 2014 Luigi Rizzo. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided

svn commit: r272451 - head/contrib/tcpdump

2014-10-02 Thread Luigi Rizzo
Author: luigi Date: Thu Oct 2 21:34:52 2014 New Revision: 272451 URL: https://svnweb.freebsd.org/changeset/base/272451 Log: add CAP_EVENT for the libpcap device so we will be able to use pcap--netmap which does poll() on the file descriptor MFC after:2 weeks Modified:

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

2014-09-25 Thread Luigi Rizzo
Author: luigi Date: Thu Sep 25 14:25:38 2014 New Revision: 272108 URL: http://svnweb.freebsd.org/changeset/base/272108 Log: add missing file Submitted by: Daniel Peyrolon MFC after:3 days Modified: head/sys/modules/netmap/Makefile Modified: head/sys/modules/netmap/Makefile

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

2014-09-25 Thread Luigi Rizzo
Author: luigi Date: Thu Sep 25 15:57:57 2014 New Revision: 272110 URL: http://svnweb.freebsd.org/changeset/base/272110 Log: adapt the code to different freebsd versions. Not necessary to MFC Modified: head/sys/dev/netmap/netmap_kern.h Modified: head/sys/dev/netmap/netmap_kern.h

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

2014-09-25 Thread Luigi Rizzo
Author: luigi Date: Thu Sep 25 16:22:32 2014 New Revision: 272111 URL: http://svnweb.freebsd.org/changeset/base/272111 Log: fix a panic when passing ifioctl from a netmap file descriptor to the underlying device. This needs to be merged to 10.1 Reported by: Patrick Kelsey MFC after:

Re: svn commit: r270874 - in head/sys: dev/netmap net

2014-09-08 Thread Luigi Rizzo
netmap_adapter *if_netmap; /* netmap(4) softc */ /* Various procedures of the layer2 encapsulation and drivers. */ int (*if_output)/* output routine (enqueue) */ -- -+--- Prof. Luigi RIZZO

svn commit: r270235 - stable/10/sys/dev/e1000

2014-08-20 Thread Luigi Rizzo
Author: luigi Date: Wed Aug 20 17:33:32 2014 New Revision: 270235 URL: http://svnweb.freebsd.org/changeset/base/270235 Log: MFC 259907 (dates back to december) use the correct netmap - nic slot mapping on the transmit ring for 'lem'. This bug would manifest only in netmap mode and on

svn commit: r270252 - in stable/10: sys/conf sys/dev/e1000 sys/dev/ixgbe sys/dev/netmap tools/tools/netmap

2014-08-20 Thread Luigi Rizzo
Author: luigi Date: Wed Aug 20 23:34:36 2014 New Revision: 270252 URL: http://svnweb.freebsd.org/changeset/base/270252 Log: MFC 270063: update of netmap code (vtnet and cxgbe not merged yet because we need some other mfc first) Added: stable/10/sys/dev/netmap/if_vtnet_netmap.h (contents,

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

2014-08-17 Thread Luigi Rizzo
Author: luigi Date: Sun Aug 17 10:25:27 2014 New Revision: 270097 URL: http://svnweb.freebsd.org/changeset/base/270097 Log: staticize two functions, and use proper format for a struct sglist (reported by bz) Modified: head/sys/dev/netmap/if_vtnet_netmap.h Modified:

svn commit: r270046 - head/sys/dev/virtio

2014-08-16 Thread Luigi Rizzo
Author: luigi Date: Sat Aug 16 13:13:17 2014 New Revision: 270046 URL: http://svnweb.freebsd.org/changeset/base/270046 Log: print additional debugging info in virtqueue_dump() (not fundamental, but useful to debug performance issues on vtnet) MFC after:3 days Modified:

svn commit: r270063 - in head: sys/conf sys/dev/cxgbe sys/dev/e1000 sys/dev/ixgbe sys/dev/netmap sys/dev/virtio/network sys/net tools/tools/netmap

2014-08-16 Thread Luigi Rizzo
Author: luigi Date: Sat Aug 16 15:00:01 2014 New Revision: 270063 URL: http://svnweb.freebsd.org/changeset/base/270063 Log: Update to the current version of netmap. Mostly bugfixes or features developed in the past 6 months, so this is a 10.1 candidate. Basically no user API changes

Re: svn commit: r270063 - in head: sys/conf sys/dev/cxgbe sys/dev/e1000 sys/dev/ixgbe sys/dev/netmap sys/dev/virtio/network sys/net tools/tools/netmap

2014-08-16 Thread Luigi Rizzo
On Sat, Aug 16, 2014 at 03:00:01PM +, Luigi Rizzo wrote: Author: luigi ... 5. if_lem.c: support for various paravirtualization features, experimental and disabled by default. Most of these are described in our ANCS'13 paper [1]. Paravirtualized support in netmap mode is new

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

2014-07-02 Thread Luigi Rizzo
Author: luigi Date: Wed Jul 2 12:13:11 2014 New Revision: 268156 URL: http://svnweb.freebsd.org/changeset/base/268156 Log: Various bugfixes from Stefano Garzarella: 1. oce_multiq_start(): make sure the buffer is consumed even on ENXIO 2. oce_multiq_transmit(): there is an extra call to

Re: svn commit: r268028 - head/sys/dev/e1000

2014-06-30 Thread Luigi Rizzo
-msix; rxr-fmp-m_flags |= M_FLOWID; #endif -- -+--- Prof. Luigi RIZZO, ri...@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/. Universita` di Pisa TEL

Re: svn commit: r268028 - head/sys/dev/e1000

2014-06-30 Thread Luigi Rizzo
On Mon, Jun 30, 2014 at 04:56:01PM +0200, Luigi Rizzo wrote: I am getting the following error while compiling with gcc: cc1: warnings being treated as errors /usr/home/luigi/FreeBSD/head/sys/dev/e1000/if_igb.c: In function 'igb_attach': /usr/home/luigi/FreeBSD/head/sys/dev/e1000/if_igb.c

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

2014-06-10 Thread Luigi Rizzo
Author: luigi Date: Tue Jun 10 16:06:59 2014 New Revision: 267328 URL: http://svnweb.freebsd.org/changeset/base/267328 Log: change the netmap mbuf destructor so the same code works also on FreeBSD 9. For head and 10 this change has no effect, but on stable/9 it would cause panics when using

svn commit: r267333 - stable/10/sys/dev/netmap

2014-06-10 Thread Luigi Rizzo
Author: luigi Date: Tue Jun 10 17:17:44 2014 New Revision: 267333 URL: http://svnweb.freebsd.org/changeset/base/267333 Log: MFC 267328: change the netmap mbuf destructor so the same code works also on FreeBSD 9. For head and 10 this change has no effect, but on stable/9 it would cause

svn commit: r267334 - stable/10/sys/dev/netmap

2014-06-10 Thread Luigi Rizzo
Author: luigi Date: Tue Jun 10 17:24:46 2014 New Revision: 267334 URL: http://svnweb.freebsd.org/changeset/base/267334 Log: MFC 267284 Fixes from Fanco Ficthner on transparent mode * The way rings are updated changed with the last API bump. Also sync -head when moving slots in

svn commit: r267279 - in stable/10/sys/dev: e1000 ixgbe virtio/network vmware/vmxnet3

2014-06-09 Thread Luigi Rizzo
Author: luigi Date: Mon Jun 9 15:09:05 2014 New Revision: 267279 URL: http://svnweb.freebsd.org/changeset/base/267279 Log: MFC svn 267065 and 267187 make sure ifp-if_transmit returns 0 if a buffer is enqueued. This should also be merged to stable/9. After this fix, drivers still

svn commit: r267280 - stable/10/sys/net

2014-06-09 Thread Luigi Rizzo
Author: luigi Date: Mon Jun 9 15:15:08 2014 New Revision: 267280 URL: http://svnweb.freebsd.org/changeset/base/267280 Log: MFC 267167: whitespace changes (comments) Modified: stable/10/sys/net/netmap.h Modified: stable/10/sys/net/netmap.h

svn commit: r267281 - stable/10/sys/net

2014-06-09 Thread Luigi Rizzo
Author: luigi Date: Mon Jun 9 15:16:17 2014 New Revision: 267281 URL: http://svnweb.freebsd.org/changeset/base/267281 Log: MFC 267168: misc bugfixes: - stdio.h is needed for fprint() - make memsize uint32_t to avoid errors due to overflow - honor the *XPOLL flagg in NIOCREGIF requests

svn commit: r267282 - stable/10/sys/dev/netmap

2014-06-09 Thread Luigi Rizzo
Author: luigi Date: Mon Jun 9 15:24:45 2014 New Revision: 267282 URL: http://svnweb.freebsd.org/changeset/base/267282 Log: sync netmap code with the version in HEAD: - fix handling of tx mbufs in emulated netmap mode; - introduce mbq_lock() and mbq_unlock() - rate limit some error

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

2014-06-09 Thread Luigi Rizzo
Author: luigi Date: Mon Jun 9 15:44:31 2014 New Revision: 267283 URL: http://svnweb.freebsd.org/changeset/base/267283 Log: sync the code with the one in stable/10 (wrap the if_t compatibilty function into a __FreeBSD_version conditional block) Modified: head/sys/dev/netmap/netmap_kern.h

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

2014-06-09 Thread Luigi Rizzo
Author: luigi Date: Mon Jun 9 15:46:11 2014 New Revision: 267284 URL: http://svnweb.freebsd.org/changeset/base/267284 Log: Fixes from Fanco Ficthner on transparent mode * The way rings are updated changed with the last API bump. Also sync -head when moving slots in netmap_sw_to_nic().

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

2014-06-06 Thread Luigi Rizzo
Author: luigi Date: Fri Jun 6 10:40:20 2014 New Revision: 267150 URL: http://svnweb.freebsd.org/changeset/base/267150 Log: prevent a panic when the netdev/ifp is not set in attach (internal c63a7b85) MFC after:3 days Modified: head/sys/dev/netmap/netmap.c Modified:

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

2014-06-06 Thread Luigi Rizzo
Author: luigi Date: Fri Jun 6 10:50:14 2014 New Revision: 267151 URL: http://svnweb.freebsd.org/changeset/base/267151 Log: add checks for invalid buffer pointers and lengths Modified: head/sys/dev/netmap/netmap_vale.c Modified: head/sys/dev/netmap/netmap_vale.c

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

2014-06-06 Thread Luigi Rizzo
Author: luigi Date: Fri Jun 6 14:57:16 2014 New Revision: 267163 URL: http://svnweb.freebsd.org/changeset/base/267163 Log: remove two debugging messages, align comments with the code in our development trunk Modified: head/sys/dev/netmap/netmap_generic.c Modified:

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

2014-06-06 Thread Luigi Rizzo
Author: luigi Date: Fri Jun 6 14:57:40 2014 New Revision: 267164 URL: http://svnweb.freebsd.org/changeset/base/267164 Log: rate limit some error messages Modified: head/sys/dev/netmap/netmap_vale.c Modified: head/sys/dev/netmap/netmap_vale.c

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

2014-06-06 Thread Luigi Rizzo
Author: luigi Date: Fri Jun 6 14:58:25 2014 New Revision: 267165 URL: http://svnweb.freebsd.org/changeset/base/267165 Log: align comments with the ones in our development trunk Modified: head/sys/dev/netmap/netmap.c head/sys/dev/netmap/netmap_kern.h Modified: head/sys/dev/netmap/netmap.c

svn commit: r267167 - head/sys/net

2014-06-06 Thread Luigi Rizzo
Author: luigi Date: Fri Jun 6 15:15:27 2014 New Revision: 267167 URL: http://svnweb.freebsd.org/changeset/base/267167 Log: whitespace change: fix one comment, remove a stale one. Modified: head/sys/net/netmap.h Modified: head/sys/net/netmap.h

svn commit: r267168 - head/sys/net

2014-06-06 Thread Luigi Rizzo
Author: luigi Date: Fri Jun 6 15:17:19 2014 New Revision: 267168 URL: http://svnweb.freebsd.org/changeset/base/267168 Log: misc bugfixes: - stdio.h is needed for fprint() - make memsize uint32_t to avoid errors due to overflow - honor the *XPOLL flagg in NIOCREGIF requests - mmap fails

  1   2   3   4   5   6   7   >